Skip to content

Instantly share code, notes, and snippets.

@life1347
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save life1347/aa24a61295e52e268ebe to your computer and use it in GitHub Desktop.
Save life1347/aa24a61295e52e268ebe to your computer and use it in GitHub Desktop.
vFW.sh
#!/bin/bash
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment