Skip to content

Instantly share code, notes, and snippets.

@ratacibernetica
Last active June 15, 2020 01:21
Show Gist options
  • Save ratacibernetica/b672533ad0f27af5a4edd09464370d11 to your computer and use it in GitHub Desktop.
Save ratacibernetica/b672533ad0f27af5a4edd09464370d11 to your computer and use it in GitHub Desktop.
add route from WAN to LAN raspberry PI

In linux sudo ip route add 192.168.50.0/24 via 192.168.15.2

In MacOS sudo route -n add -net 192.168.50.0/24 192.168.15.2

persist by adding the line above to

/lib/dhcpcd/dhcpcd-hooks/40-myroute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment