Created
February 25, 2013 00:25
-
-
Save steveb/5026440 to your computer and use it in GitHub Desktop.
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
*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