Created
January 25, 2013 17:21
-
-
Save lyhcode/4636256 to your computer and use it in GitHub Desktop.
Let VPN clients access to server LAN using iptables and route
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ubuntu vpn server | |
sudo iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -d 192.168.0.0/24 -j MASQUERADE | |
# mac os x client | |
sudo route add 192.168.0.0/24 192.168.100.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment