Skip to content

Instantly share code, notes, and snippets.

@eternnoir
Created September 11, 2013 10:06
Show Gist options
  • Save eternnoir/6521665 to your computer and use it in GitHub Desktop.
Save eternnoir/6521665 to your computer and use it in GitHub Desktop.
linode vpn use
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
@eternnoir
Copy link
Author

/sbin/iptables -t nat -A POSTROUTING -s 172.16.36,0/24 -o eth0 -j MASQUERADE

@eternnoir
Copy link
Author

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