-
Notifications
You must be signed in to change notification settings - Fork 89
Description
I have been struggling with getting my setup working correctly, but have finally figured it out.
So wanted to share my notes in case anyone else want to use tailscale in the same way.
This is my setup and network flow:
A (router) -> B (RPi, two interfaces, eth0 and tailscale0) -> C (remote location, part of the tailscale VPN network)
A:
Open portforwarding to B.
B:
Forward the ports from local LAN to Tailscale
edit /etc/ufw/before.rules
(at the end, below the commit for the filter section)
#### Nat table
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -p udp -i eth0 --dport 9876 -j DNAT --to-destination 100.93.100.141:9876
-A PREROUTING -p udp -i eth0 --dport 9877 -j DNAT --to-destination 100.93.100.141:9877
-A POSTROUTING -s 0.0.0.0/0 -o tailscale0 -j MASQUERADE
COMMIT
sudo systemctl restart ufw
sudo ufw reload
When launching the Vrising server from a remote location, some traffic will go directly to steam. There will be a mismatch in the public server IP you want, and the IP that the server reports to Steam.
You will see this as Authentication Error when logging on to the game server.
So we need to route the Steam networks via the same IP.
sudo tailscale set --advertise-routes "192.168.2.0/24,155.133.224.0/19,162.254.192.0/21"
Then go to the tailscale admin page, and click on "Edit routes" for the machine, and approve the new routes.
C:
sudo tailscale set --accept-routes
Start the Vrising server