Skip to content

Instantly share code, notes, and snippets.

@steveb
Created February 25, 2013 00:25
Show Gist options
  • Save steveb/5026440 to your computer and use it in GitHub Desktop.
Save steveb/5026440 to your computer and use it in GitHub Desktop.
*nat
-A POSTROUTING -o eth1 -j MASQUERADE
-A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.1.200:3128
-A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
COMMIT
*filter
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i eth1 -j DROP
COMMIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment