Self-Host RustDesk Relay & Tailscale Custom DERP on Netcup VPS
Deploying a private RustDesk ID/Relay server (hbbs/hbbr with -k _ key enforcement) alongside a verified Tailscale custom DERP node on Netcup VPS 1000 G12.5 (4 vCores, 8 GB RAM, 2.5 Gbit/s Traffic Flatrate in EU & USA) costs €11.76/month net effective with the €5 voucher (36nc)—or €11.17/month net with the 1-month-free voucher, and just €1.85/month net (€1.43/mo eff. w/ 36nc) on VPS pico G11.5s—saving €807/year vs €79/month TeamViewer fees.
| Tier | Workload Scale | CPU / RAM / Disk | Matched Netcup Plan |
|---|---|---|---|
| Ultra-Budget Personal Relay | 1–5 personal devices, 1080p RustDesk + single-user DERP (1 Gbit/s DE) | 1 Shared vCore · 1 GB RAM · 30 GB | VPS pico G11.5s (€1.85/mo · €1.43/mo eff. w/ 36nc) |
| IT Team & Headscale Hub (Recommended) | 15–60 endpoints, multi-4K60 streams + verified DERP + Headscale (2.5 Gbit/s) | 4 vCores (G12.5) · 8 GB RAM · 128 GB | VPS 1000 G12.5 (€11.76/mo w/ 36nc · €11.17/mo w/ 1M Free) |
| MSP Enterprise Support Fleet | 200+ managed clients, RustDesk Pro address book + 2.5 Gbit/s dedicated CPU | 4 Dedicated EPYC 9645/9655 · 8 GB RAM · 128 GB | RS 1000 G12.5 (2 Months Free · €15.22/mo net) |
services:
hbbs:
image: rustdesk/rustdesk-server:latest
container_name: rustdesk-hbbs
command: hbbs -r ${RUSTDESK_DOMAIN:-rd.yourdomain.eu}:21117 -k _
restart: unless-stopped
ports:
- "21115:21115/tcp" # NAT type test
- "21116:21116/tcp" # TCP hole punching
- "21116:21116/udp" # ID registration & heartbeat
- "21118:21118/tcp" # WebSocket client signaling
volumes:
- ./rustdesk-data:/root
hbbr:
image: rustdesk/rustdesk-server:latest
container_name: rustdesk-hbbr
command: hbbr -k _
restart: unless-stopped
ports:
- "21117:21117/tcp" # Encrypted TCP stream relay
- "21119:21119/tcp" # WebSocket relay fallback
volumes:
- ./rustdesk-data:/root
derper:
image: fredliang/derper:latest
container_name: tailscale-derper
restart: unless-stopped
ports:
- "8443:8443/tcp" # Custom HTTPS DERP port (avoids port 443 clash)
- "3478:3478/udp" # STUN UDP hole-punching port
environment:
DERP_DOMAIN: "${DERP_DOMAIN:-derp.yourdomain.eu}"
DERP_ADDR: ":8443"
DERP_STUN_PORT: "3478"
DERP_HTTP_PORT: "-1"
DERP_CERT_MODE: "letsencrypt"
DERP_VERIFY_CLIENTS: "true"
volumes:
- /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock:ro
- ./derp-certs:/app/certs- • Instant €5 deduction on first order >= €5
- • Works on VPS pico, ARM64 VPS, Root Servers & Hosting
- • Excludes standalone domain-only orders
New customers: code copied & prefilled — add any plan >= €5 to cart to deduct €5.
How Do RustDesk hbbs/hbbr Ports (21115–21119) & Mandatory -k _ Key Enforcement Work?
RustDesk splits remote-desktop signaling and media transport across two lightweight Rust binaries: hbbs (Rendezvous/ID server handling NAT type discovery on 21115/TCP, client registration on 21116/UDP, TCP hole-punching on 21116/TCP, and WebSocket signaling on 21118/TCP) and hbbr (fallback TCP/WebSocket media relay on 21117/TCP and 21119/TCP). Passing the mandatory -k _ flag to both hbbs and hbbr enforces Ed25519 public-key authentication using the auto-generated id_ed25519.pub keypair, ensuring unauthenticated scanners cannot steal your server bandwidth or enumerate registered endpoints. In idle operation, hbbs and hbbr together consume fewer than 35 MB of RAM and under 1% CPU, allowing even a €1.85/month net Netcup VPS pico G11.5s (€1.43/mo net eff. w/ 36nc; 1 vCore, 1 GB RAM, 30 GB SSD, 1 Gbit/s port in Nuremberg DE with 100 Mbit/s shaping only above 100 Mbit/s 24h average) to relay 2–4 personal 1080p sessions, while VPS 1000 G12.5 (4 vCores, 8 GB RAM, 2.5 Gbit/s Traffic Flatrate in EU & USA) handles 50+ concurrent enterprise support streams effortlessly.
On first container startup, inspect ./rustdesk-data/id_ed25519.pub to retrieve your base64 public key. Any client attempting to register or relay without that exact Key pasted into Settings -> Network -> Key is dropped immediately at the socket layer.
Whenever direct UDP NAT hole-punching succeeds (~70% of residential fiber connections), traffic flows peer-to-peer directly between endpoints; hbbr steps in seamlessly inside 200 milliseconds whenever strict symmetric NAT blocks direct packets.
| Port & Protocol | Daemon | Required For | Public Exposure Rule |
|---|---|---|---|
| 21115 / TCP | hbbs | Symmetric vs Cone NAT type detection | Open (or Tailnet-only) |
| 21116 / UDP + TCP | hbbs | Client ID heartbeat (UDP) & hole punching (TCP) | Mandatory Open |
| 21117 / TCP | hbbr | Encrypted fallback video/audio/clipboard relay | Mandatory Open |
| 21118 & 21119 / TCP | hbbs / hbbr | Browser WebClient WebSocket transport | Optional (close if desktop-only) |
Leaving hbbs/hbbr open without -k _ allows automated bots to use your dedicated Netcup IPv4 as an open relay within hours. Always back up ./rustdesk-data/id_ed25519 so client keys never change across server migrations.
Why Add a Verified Custom Tailscale DERP Node (or Headscale) on the Same Netcup VPS?
When strict corporate firewalls, hotel captive portals, or symmetric 5G Carrier-Grade NAT (CGNAT) block direct WireGuard UDP hole-punching, Tailscale and Headscale clients automatically fall back to Designated Encrypted Relay for Packets (DERP) over HTTPS TCP transport. Shared public Tailscale DERP relays frequently throttle throughput down to 5–15 Mbps and add 45–120 milliseconds of detour latency during busy evening hours across Europe and Asia. Deploying a private DERP container (fredliang/derper) on your dedicated Netcup VPS G12.5 unlocks up to 2.5 Gbit/s WireGuard relay throughput in Europe and Manassas USA (1 Gbit/s in Singapore) alongside instant 3478/UDP STUN coordination with under 2 milliseconds of local packet forwarding overhead. Mounting the host daemon Unix socket (/var/run/tailscale/tailscaled.sock) with DERP_VERIFY_CLIENTS=true cryptographically restricts relay access exclusively to authenticated devices registered inside your private tailnet, preventing unauthorized public free-riding while letting IT teams co-locate an open-source Headscale coordination server alongside DERP on VPS 1000 G12.5 for 100% sovereign zero-trust mesh networking.
Running DERP on custom port 8443 (as shown in the Compose blueprint) leaves standard TCP port 443 free on the same VPS for Caddy, Vaultwarden, or Headscale—simply set "DERPPort": 8443 inside your Tailscale Admin Console ACL derpMap JSON.
- Install host tailscaled first: Run curl -fsSL https://tailscale.com/install.sh | sh && tailscale up on the Netcup host so /var/run/tailscale/tailscaled.sock exists for client verification.
- Verify sub-15 ms relay health: Execute tailscale netcheck and tailscale ping <peer> on any laptop to confirm Region 901 responds over both IPv4 and IPv6.
- Optional OmitDefaultRegions: Set "OmitDefaultRegions": false so Tailscale uses your fast Netcup DERP as primary while retaining official relays as global backup.
If airport or hospital firewalls block non-standard TCP port 8443, route derp.yourdomain.eu through Caddy/Nginx SNI passthrough or bind DERP directly to 443 so relayed WireGuard looks identical to standard HTTPS.
Which Netcup Data Center Gives the Lowest Latency for Remote Desktop & DERP Mesh?
Remote-desktop cursor responsiveness and smooth 60 frames-per-second AV1 or HEVC screen sharing depend directly on round-trip packet latency between operator, relay server, and target workstation whenever direct peer-to-peer NAT traversal fails. Netcup operates five strategic VPS G12.5 data centers—Nuremberg (Germany), Vienna (Austria), Amsterdam (Netherlands), Manassas in Virginia (US-East), and Singapore in Asia-Pacific—allowing global engineering teams to pin custom Tailscale derpMap regions (IDs 901 through 905) and regional RustDesk relays right next to remote staff. A crisp 1080p 60 fps RustDesk session encoded with modern hardware AV1 consumes roughly 3.5 to 6.0 Mbps of sustained bandwidth; on Netcup VPS 1000 G12.5’s 2.5 Gbit/s port (1 Gbit/s in Singapore) with Traffic Flatrate (Unlimited—temporary throttle to 200 Mbit/s applies only if 24h average traffic exceeds 2 TB and lifts automatically), twenty simultaneous helpdesk technicians consume barely 100 Mbps total without incurring hyperscaler egress surcharges that would easily exceed €180 per month on AWS EC2. Redeeming Netcup’s €5 new-customer voucher (36nc) makes multi-continent low-latency relaying remarkably cost-effective.
Notice how Netcup’s native dual-stack /64 IPv6 allocation helps bridge mobile 5G IPv6-only networks (such as Telekom, Vodafone, or T-Mobile) cleanly back to office IPv4-only workstations without double-NAT jitter.
| Netcup Region | Recommended Tailscale RegionID | Coverage Sweet Spot | Port & Typical RTT |
|---|---|---|---|
| Nuremberg (NUE) / Amsterdam (AMS) | 901 / 905 | Germany, Benelux, UK, France, Nordics | 2.5 Gbit/s · 4–16 ms |
| Vienna (VIE) | 902 (vie-derp) | Austria, Switzerland, Italy, Central/East EU | 2.5 Gbit/s · 8–20 ms |
| Manassas (US-East) | 903 (iad-derp) | North America East/Central & Transatlantic | 2.5 Gbit/s · 10–30 ms |
| Singapore (SIN) | 904 (sin-derp) | Southeast Asia, Hong Kong, Japan, Australia | 1 Gbit/s · 8–36 ms |
Zero-Public-Port Tailnet Mode vs Public MSP Helpdesk: Which Security Architecture Fits?
Organizations choose between two battle-tested security topologies when combining RustDesk and Tailscale on a Netcup VPS: Zero-Public-Port Internal Mode for homelabs and DevOps fleets, or Public Helpdesk Mode for external client support. In Zero-Public-Port Mode, administrators bind both hbbs and hbbr exclusively to the server’s private Tailscale 100.x.y.z network interface and close ports 21115 through 21119 completely on the public eth0 firewall—meaning workstations connect over end-to-end encrypted WireGuard tunnels assisted by your custom DERP node with zero exposed RustDesk attack surface. Conversely, managed service providers supporting unmanaged customer laptops deploy Public Helpdesk Mode with mandatory -k _ key enforcement baked directly into a pre-configured client binary filename (rustdesk-host=rd.agency.eu,key=PUBKEY.exe), replacing €79 to €199 per month TeamViewer Corporate or AnyDesk licenses for €11.76/month net effective (12M €12.18/mo net minus €5 voucher 36nc) or €11.17/month net effective (with 1-month-free voucher) on VPS 1000 G12.5. That deployment saves €807+ in Year 1 while preserving full European session sovereignty.
For orders above €5 cart value (such as 12-month VPS pico G11.5s, VPS 500 G12.5 at €6.94/mo 12M net, RS 500 G12.5 at €10.86/mo 12M net, or flexible 1-month VPS 1000 G12.5 at €14.01/mo net), new Netcup customers can redeem the €5 instant discount voucher (36nc), whereas 12-month VPS 1000 G12.5 buyers can alternatively claim the 1-month-free voucher (€12.18 net saved) for €11.17/month net effective (€13.29 gross)—or lock in 24M at €10.35/month net.
- Zero-Config Client EXE Naming: Rename the Windows portable binary to rustdesk-host=rd.yourdomain.eu,key=<PUBKEY>.exe so end users connect in two clicks.
- Unattended Access Hardening: Enforce permanent 16+ character alphanumeric passwords plus OS-level 2FA approval or Tailscale ACL tag restrictions.
- Consolidate Homelab Core: VPS 1000 G12.5 uses < 250 MB RAM for RustDesk + DERP, leaving 7.5 GB RAM free for Vaultwarden, Uptime Kuma, and Headscale.
Popular Self-Hosted App Blueprints
Self-hosting Coolify or Dokploy transforms a Linux server into an automated Git-push PaaS with Traefik/Caddy SSL, PR previews, and managed databases, requiring 4 cores and 8 GB RAM to survive Nixpacks build spikes. Netcup RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 cores, €15.22/mo net eff. on 12M with 2 free months via 6874nc; €15.52/mo net on 24M) replaces €85+/mo Vercel and Render bills.
Installing Proxmox VE on Netcup Root Servers via custom SCP ISO mounting consolidates dozens of isolated Linux workloads onto 16–64 GB DDR5 ECC RAM with routed /64 IPv6 and NAT IPv4. Netcup RS 2000 (€31.35/mo), RS 4000 (€64.98/mo), and RS 8000 G12.5 (€114.33/mo net with vouchers) cut €195+/mo cloud fleet bills.
Hosting PaperMC Minecraft or Palworld dedicated servers on a Netcup RS 2000 G12.5 (8 dedicated AMD EPYC™ 9645 or 9655 cores, 16 GB DDR5 ECC RAM, 2.5 Gbit/s Traffic Flatrate) costs €31.35/month net effective on 12M with the 1-month-free voucher (6875nc; or €29.07/month net on 24M), beating €68/month game-host slots while locking 20.0 TPS tick stability with zero CPU steal.
Deploying the ultimate Homelab Starter Stack—Vaultwarden password vault, Caddy 2 auto-HTTPS, Uptime Kuma status alerts, Beszel telemetry, and CrowdSec IPS—on Netcup VPS 1000 G12.5 (4 vCores, 8 GB RAM, 2.5 Gbit/s Traffic Flatrate) costs just €11.17/month net effective (€13.29 gross; €12.18/mo regular 12M net, €10.35/mo on 24M) with the 1-month-free voucher, or €1.85/month net (€1.43/mo net eff. w/ 36nc) on VPS pico G11.5s, saving €454/year over €49/month SaaS tools.
Frequently Asked Questions
Is Netcup VPS pico G11.5s (€1.85/mo net) enough for RustDesk and Tailscale DERP?
Yes for personal use! Both RustDesk OSS (hbbs/hbbr) and Go-based derper are extremely lightweight (< 150 MB combined RAM). VPS pico G11.5s (€1.85/mo net / €2.20 gross on 12M with €0 setup fee, or €1.43/mo net eff. w/ 36nc) runs in Nuremberg DE with a 1 Gbit/s port (shaped to 100 Mbit/s only if 24h average traffic exceeds 100 Mbit/s), whereas VPS 500 (€6.94/mo 12M net) and VPS 1000 G12.5 (€12.18/mo 12M net) provide 2.5 Gbit/s ports across EU & USA with Traffic Flatrate (<2 TB/24h unthrottled) and 4–8 GB RAM.
How do I stop strangers from discovering and using my custom Tailscale DERP server?
Install tailscaled directly on the Netcup host, authenticate it to your tailnet, mount /var/run/tailscale/tailscaled.sock read-only into the derper container, and set DERP_VERIFY_CLIENTS=true. Any device not authorized in your tailnet is rejected instantly during the TLS handshake.
Do I need RustDesk Pro, or is open-source RustDesk Server (OSS) sufficient?
Open-source rustdesk/rustdesk-server (hbbs + hbbr) is 100% free (AGPL-3.0) with unlimited concurrent sessions, 4K60 AV1 streaming, file transfer, TCP tunneling, and -k _ encryption. Only upgrade to RustDesk Pro if your team requires SSO/OIDC login, a synced cloud address book UI, and audit logs.
Why does my €5 Netcup voucher (36nc) require a minimum cart value?
Netcup’s universal €5 new-customer voucher (36nc) applies to hosting or server carts meeting the minimum order threshold (excluding standalone domains). On a 12-month VPS pico G11.5s (€22.20 net/yr → €17.20 net/yr, or €1.43/mo net eff.) or any VPS 500 / VPS 1000 / RS 500 order, it deducts immediately on your first invoice.