Self-hosted app·Files, photos and passwords
Syncthing relay server on a Swiss VPS.
Host a Syncthing relay server on a Debian 13 VPS in ALP1, Swiss Alps: sizing, ports, Docker setup and monthly transfer included from 6.99 USD/month.
- Syncthing
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. The Syncthing relay server, strelaysrv, runs on our entry plan, Cloud VPS Starter, at 6.99 USD a month with Debian 13 in ALP1, Swiss Alps. It uses a sliver of one vCPU and next to no disk. What decides whether a relay makes sense on a given host is traffic: a public relay forwards whatever the Syncthing network routes through it, in bursts nobody schedules. Set one anyway; the reasons are below.
02/06
What a relay does, and who runs them.
Syncthing devices first try to reach each other directly. When both ends sit behind NAT or a strict firewall and that fails, they meet on a relay: a third machine both can reach, which copies bytes between the two connections. The device-to-device TLS session passes through it untouched. The Syncthing documentation states what the relay does learn: the IP address and device ID of each device, and the volume of traffic between them. File data stays encrypted end to end and is not open to inspection by the relay. Syncthing keeps retrying a direct connection in the background and drops the relay as soon as one succeeds.
The relay server lives in the main Syncthing repository and ships under the MPL-2.0, like the client. The project also operates the pool server at relays.syncthing.net, but the relays themselves are run by volunteers. A new relay announces itself to that pool by default, and every client with relaying enabled (the default) connects to one relay from the pool and stays connected so that it can be reached. The documentation describes the choice as the best relay according to an internal heuristic; a regular on the Syncthing forum summarised it as a random pick weighted toward low latency, and a maintainer added that clients make it when they start.
Two things follow for a volunteer. Most connections to your relay will carry nothing for days at a time, and the clients it attracts will be the ones nearest to it in round-trip time. From ALP1 that means Switzerland and the regions around it: southern Germany, northern Italy, eastern France, Austria. The other side of that coin is that central Europe already has plenty of relays, a point a maintainer made to a volunteer in Frankfurt back in 2019. A Swiss relay is a useful contribution; it will not be a busy one.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
| Resource | What strelaysrv uses | What to watch |
|---|---|---|
| CPU | A small fraction of one vCPU; it forwards TLS records without decrypting them | An operator of three public relays reported a peak load average of 0.24 on a dual-core machine (forum, 2019) |
| RAM | Grows with open connections and active sessions | A forum thread describes a relay passing 4 GB; -pprof exposes heap profiles on the status port for that case |
| Disk | The binary plus cert.pem and key.pem | The key pair is the relay's device ID. Lose it and every relay://…?id= URL pointing at you stops working |
| Ports | 22067/tcp data (we publish it on 443), 22070/tcp status | Without 22070 the pool still lists you, without name or statistics |
| File descriptors | One socket per client connection | Logged at startup as "Connection limit" |
| Traffic | Bursty, unpredictable, symmetrical | Capped with -global-rate, in bytes per second |
Traffic is the reason relays are unwelcome on many budget hosts, and nobody can tell you in advance what yours will do. Jakob Borg, Syncthing's lead developer, described the pattern on the forum in 2019: every client holds a relay connection, most setups are idle nearly all the time, and demand arrives when someone's devices finally have something to exchange. That same week a volunteer running two public relays in Frankfurt measured 60 GB in three days, about 20 GB a day for both, which averages out to under 2 Mbit/s (theoretical conversion). It is one data point, from 2019, in a crowded region. What you can plan is the ceiling, because every byte a relay forwards arrives first, so inbound and outbound volumes match:
| Sustained rate | -global-rate value | Volume per 30 days, each direction (theoretical) |
|---|---|---|
| 10 Mbit/s | 1250000 | 3.24 TB |
| 50 Mbit/s | 6250000 | 16.2 TB |
| 100 Mbit/s | 12500000 | 32.4 TB |
Cloud VPS Starter is the right plan. The current vCPU, RAM and disk figures are on the pricing page.
04/06
Deploying it on Cloud VPS Starter.
We recommend the official syncthing/relaysrv image, which the Syncthing project builds from Dockerfile.strelaysrv: Alpine, the static binary, running as UID 1000, keys stored in /var/strelaysrv. It follows upstream releases. Debian 13 packages version 1.29.5, while the upstream documentation is now written for 2.1.0.
- 01Order Cloud VPS Starter with Debian 13 through this deploy link.
- 02Install Docker from Debian's own archive:
apt update && apt install -y docker.io- 03Start the relay:
docker volume create strelaysrv
docker run -d --name strelaysrv --restart unless-stopped \
-p 443:22067/tcp -p 22070:22070/tcp \
-v strelaysrv:/var/strelaysrv \
syncthing/relaysrv:latest \
-ext-address=:443 \
-global-rate=6250000 \
-provided-by="your-name, ALP1 Switzerland"The port mapping replaces the iptables redirect in the upstream instructions: the process listens on 22067 inside the container, clients reach it on 443, and -ext-address=:443 makes it advertise 443 to the pool. Upstream recommends 443 because corporate firewalls usually let it through. Once you have settled on a version, pin its tag instead of latest.
- 04Read the log with
docker logs strelaysrv. You want two lines: the relay URI with its device ID, and "Connection limit". The relay raises its open-file limit as far as allowed and keeps 20% in reserve. In a container you will typically see 838860 (80% of 1,048,576); under systemd's default hard limit it is 419430. If yours is in the low thousands, raise it with Docker's--ulimit nofile=option. - 05Wait. Clients choose a relay when they start, so a new relay fills over hours and days. Your entry appears on relays.syncthing.net, with statistics if 22070 is reachable.
Back up the strelaysrv volume once the keys exist. If you add ufw rules later, remember that ports published by Docker are handled in Docker's own chains and bypass ufw's input rules.
If you prefer a package to a container, Debian 13 has syncthing-relaysrv in main, and the project's APT repository carries current builds in its stable-v2 channel. Point -keys at a persistent directory and keep the process off root: for port 443, use the upstream redirect or systemd's AmbientCapabilities=CAP_NET_BIND_SERVICE.
For a relay that only your own devices use, add -pools="" to stay out of the public pool, or -token=<secret> (since 1.22.1), which also turns away clients without the token and keeps the relay out of every pool. On each device, enter relay://<your-ip>:443/?id=<relay-ID>&token=<secret> in the Sync Protocol Listen Address field under Actions → Settings. A private relay suits someone who wants a predictable path between a laptop behind carrier-grade NAT and a NAS at home; a public relay is a donation.
05/06
Cost and what is included.
| Item | Cloud VPS Starter |
|---|---|
| Price | 6.99 USD per month |
| Image | Debian 13 |
| Account | No-KYC: an email address is enough |
| Payment | Crypto accepted, business customers included |
That is the whole bill for a relay. At the 50 Mbit/s cap in the example, a month at full tilt would move 16.2 TB each way (theoretical). On hosts that bill egress per terabyte, that tail risk is why volunteers switch relays off or never start them; here the risk you carry is the fair-use conversation described below, not an invoice. Top-ups earn a bonus, and an unused balance is refundable within 14 days. Account and payment details are on the no-KYC hosting page.
06/06
Limits and acceptable use.
A public Syncthing relay is allowed on every plan. It only joins two Syncthing devices that have both connected to it and does not open connections to arbitrary internet hosts on anyone's behalf, which puts it in a different abuse category from a Tor exit (see our Tor relay guide).
What we expect from you as the operator:
- Keep the relay inside fair use.
- Keep the image current: pull, then recreate the container.
- Treat what the relay sees as personal data. It handles IP addresses and device IDs, and whatever you log is yours to manage under the revised Swiss Federal Act on Data Protection, in force since 1 September 2023. Leave
-debugoff except while troubleshooting, and keep log retention short. - Answer the complaints we forward. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). For a relay, the justification is normally that the server stores no files and cannot read the encrypted streams it forwards.
The rest of our terms apply to the VPS as they would to any other workload; the FAQ covers them.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can I see what my users sync through the relay?
No. The Syncthing documentation is explicit that relayed data stays encrypted between the two devices. You see the IP addresses and device IDs of connected clients, and how much traffic flows between paired devices.
How much traffic will a public relay in Switzerland carry?
Nobody can say in advance. Clients pick nearby, low-latency relays at startup, central Europe is already well served, and Syncthing traffic is bursty. One 2019 data point from Frankfurt was about 20 GB a day for two relays. Set -global-rate to the most you are willing to give and let the traffic find its own level.
Why does my relay appear on relays.syncthing.net without a name or statistics?
The pool server collects statistics from each relay's status service on port 22070. If that port is closed or unreachable, the relay is still in the pool and still used, but listed with its address only. Open 22070/tcp and give the page a while to refresh.
Public or private relay?
Public if your aim is to help the network; private, with -token, if you want a dependable path for your own devices and do not want strangers on your bandwidth. Both run on the same plan with the same image.
Does Swiss jurisdiction matter for a relay?
Less than for storage, since a relay holds no files. What it does hold, connection metadata and any logs you keep, falls under Swiss data-protection law. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements with the United Kingdom and Australia only, none with Switzerland. The wider picture is on our offshore hosting page.
Can I run a Syncthing discovery server on the same VPS?
Yes. stdiscosrv has its own official image, syncthing/discosrv, and fits on Cloud VPS Starter next to the relay; it uses different ports.
Sources
Every fact on this page, with its source
Verified 31 Oct 2026 unless noted.
Swiss law and authorities
EU and other countries
Industry, providers and software
- strelaysrv source, cmd/strelaysrv/main.go (v0.14.45): connection limit set to 80% of the open-file limitgithub.com
- t4skforce/syncthing-relay README: "Connection limit 838860" logged in a containergithub.com
- Dockerfile.strelaysrv (Alpine base, UID/GID 1000, /var/strelaysrv, MPL-2.0 label)github.com
- Debian security tracker, source package syncthing (trixie: 1.29.5~ds1-2)security-tracker.debian.org
Other references
- Syncthing documentation, "Syncthing Relay Server" (written for v2.1.0): options, ports 22067/22070, 443 recommendation, -pools, -token since 1.22.1, client relay:// syntax, APT package namedocs.syncthing.net
- Syncthing documentation, "Relaying": what the relay operator can see; retrying direct connectionsdocs.syncthing.net
- Syncthing documentation, "Security Principles", section "Relay Connections": clients connect to one relay, relaying on by default, data not subject to inspectiondocs.syncthing.net
- Syncthing forum, "Open-Relay Donation: Month's-End Bandwidth Slurp-up" (28–31 May 2019): 60 GB in three days on two Frankfurt relays; relays chosen at client startup; Jakob Borg on idle, bursty trafficforum.syncthing.net
- Syncthing forum, "Relay stats page missing info": status service on 22070; relay choice random with a latency biasforum.syncthing.net
- Syncthing forum, "SyncThing Relay Profiling" (thread started December 2019): load average 0.24 on the busiest of three relaysforum.syncthing.net
- Syncthing forum, "strelaysrv using more than 4 GB of RAM" and the -pprof answerforum.syncthing.net
- Syncthing forum, "Connection limit 419430" (November 2022, strelaysrv v1.22.1)forum.syncthing.net
- Docker Hub, Syncthing organisation (syncthing/relaysrv, syncthing/discosrv)hub.docker.com
- Syncthing APT repository (stable-v2 channel)apt.syncthing.net
- Syncthing relay pool and statisticsrelays.syncthing.net
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
