Last active
November 13, 2024 21:47
-
-
Save flrichar/dfb691042962da361491eb145f2c445a to your computer and use it in GitHub Desktop.
rustdesk-tailscale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 encyptionand 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