commit 71ea65f707c10812a84d90d981d700b85a28557f parent c5b84c8595ed5e0de9cc5e8a5f28669d31a9ac2a Author: pyratebeard <root@pyratebeard.net> Date: Tue, 26 Mar 2024 10:12:41 +0000 updates Diffstat:
M | networking/tailscale.md | | | 13 | ++++++++++++- |
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/networking/tailscale.md b/networking/tailscale.md @@ -1,4 +1,4 @@ - # tailscale +# tailscale * [fast user switching][] (available in v1.34) ``` @@ -13,5 +13,16 @@ tailscale login --nickname=work ``` tailscale set --nickname=work ``` +* setting routes +``` +tailscale up --login-server <server> --advertise-routes 192.168.0.0/24 +``` + * requires [ip forwarding][] + ``` + 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 + ``` [fast user switching]: https://tailscale.com/kb/1225/fast-user-switching +[ip forwarding]: https://tailscale.com/kb/1019/subnets?tab=linux#enable-ip-forwarding