Configuring Tailscale to allow access to your exit node local IP addresses/network
By default, you cannot access the network of your exit node but can be achieved fairly easy by using the Tailscale advertise subnets option
SSH / Connect to the exit node you would like to set up,
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf sudo sysctl -p /etc/sysctl.conf
As I don’t run a firewalld on my local devices, I did not have to set up firewalld with masquerading, in case you do:
firewall-cmd --permanent --add-masquerade
Now its time to advertise our local subnet
sudo tailscale up --advertise-routes=192.168.1.0/24 --advertise-exit-node
now head over to the route settings of the node we just used to advertise its routes to
That’s it! when you use this node as an exit host you can now access its local networks!