71ea65f707c10812a84d90d981d700b85a28557f
networking/tailscale.md
... | ... | @@ -1,4 +1,4 @@ |
1 | - # tailscale |
|
1 | +# tailscale |
|
2 | 2 | |
3 | 3 | * [fast user switching][] (available in v1.34) |
4 | 4 | ``` |
... | ... | @@ -13,5 +13,16 @@ tailscale login --nickname=work |
13 | 13 | ``` |
14 | 14 | tailscale set --nickname=work |
15 | 15 | ``` |
16 | +* setting routes |
|
17 | +``` |
|
18 | +tailscale up --login-server <server> --advertise-routes 192.168.0.0/24 |
|
19 | +``` |
|
20 | + * requires [ip forwarding][] |
|
21 | + ``` |
|
22 | + echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf |
|
23 | + echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf |
|
24 | + sudo sysctl -p /etc/sysctl.conf |
|
25 | + ``` |
|
16 | 26 | |
17 | 27 | [fast user switching]: https://tailscale.com/kb/1225/fast-user-switching |
28 | +[ip forwarding]: https://tailscale.com/kb/1019/subnets?tab=linux#enable-ip-forwarding |