Your Private Network code · Part 3 — Reaching Your Whole Home Network

Chapter 6 Subnet Routers

5 blocks

★ Setting It Up on Linux, Including a Raspberry Pi

#

Run Terminal, on the Linux subnet router
echo 'net.ipv4.ip_forward = 1' | \
  sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | \
  sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf

#

Run Terminal, on the Linux subnet router

Use your own home network's range.

sudo tailscale set --advertise-routes=192.168.1.0/24

★ Setting It Up on a Mac or Windows Computer

#

Run Terminal, on the Mac

Use your own home network's range.

sudo tailscale set --advertise-routes=192.168.1.0/24

#

Run PowerShell, as administrator, on Windows

Use your own home network's range.

tailscale set --advertise-routes=192.168.1.0/24

Using It

#

Run Terminal, on a Linux device that should use the route
sudo tailscale set --accept-routes

Reproduced exactly from Your Private Network, Chapter 6. The book explains what each line does and what to do when it doesn't work. About the book

Something here not working as the book describes? Tell the author.