Skip to content

Instantly share code, notes, and snippets.

@flrichar
Last active November 15, 2023 13:01
Show Gist options
  • Save flrichar/dfb691042962da361491eb145f2c445a to your computer and use it in GitHub Desktop.
Save flrichar/dfb691042962da361491eb145f2c445a to your computer and use it in GitHub Desktop.
rustdesk-tailscale
Rustdesk is open-source teamviewer, hbbs = ID/rendezvous server, hbbr = relay server
$ docker image pull rustdesk/rustdesk-server
make a data dir, and simple start.sh bash script
viola, ufw stops other traffic, enforced over 100.64.0.0/10 carrier nat from tailscale
current testing machine in Vultr ON, Canada
tree view of data dir
data
├── db_v2.sqlite3
├── db_v2.sqlite3-shm
├── db_v2.sqlite3-wal
├── id_ed25519
└── id_ed25519.pub
...
#!/bin/bash
MYADDR=192.168.204.2
MYDATA="/home/flr/opt/rustdesk/data"
docker run --name hbbs -v $MYDATA:/root -d --rm rustdesk/rustdesk-server hbbs -r $MYADDR
docker run --name hbbr -v $MYDATA:/root -d --rm rustdesk/rustdesk-server hbbr
@flrichar
Copy link
Author

flrichar commented May 22, 2022

need to take a closer look at the binaries, turn this into a k8s deployment + service
other things to consider, this does not use the hbbr -k _ option for encyrption, ts would provide encyption

and it works. 192.168.204.0/24 is the local docker0 in the instance.
removed net=host, added the cidr to tailscale's list of advertised-routes
windows vm on ISP1, installed tailscale client and rustdesk
apple laptop on ISP2, installed tailscale client and rustdesk
added first ip (192.168.204.2) from hbbs, connection was very quick
All 3 ISPs (1, 2 and instance) in same general region, <50ms latency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment