Created
September 11, 2013 10:06
-
-
Save eternnoir/6521665 to your computer and use it in GitHub Desktop.
linode vpn use
This file contains 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
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE |
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/sbin/iptables -t nat -A POSTROUTING -s 172.16.36,0/24 -o eth0 -j MASQUERADE