Skip to content

Instantly share code, notes, and snippets.

@zenloner
Created April 15, 2013 06:13
Show Gist options
  • Save zenloner/5386049 to your computer and use it in GitHub Desktop.
Save zenloner/5386049 to your computer and use it in GitHub Desktop.
for vpn in /proc/sys/net/ipv4/conf/*; do echo 0 > $vpn/accept_redirects; echo 0 > $vpn/send_redirects; done
iptables --table nat --append POSTROUTING --jump MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment