Last active
August 29, 2015 14:06
-
-
Save zacharyblank/4233cef7b6f2d88e7453 to your computer and use it in GitHub Desktop.
iptables
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
# Generated by iptables-save v1.4.21 on Thu Sep 18 12:53:41 2014 | |
*nat | |
:PREROUTING ACCEPT [378:24243] | |
:INPUT ACCEPT [48:2690] | |
:OUTPUT ACCEPT [9616:597220] | |
:POSTROUTING ACCEPT [9616:597220] | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8080 | |
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | |
COMMIT | |
# Completed on Thu Sep 18 12:53:41 2014 | |
# Generated by iptables-save v1.4.21 on Thu Sep 18 12:53:41 2014 | |
*filter | |
:INPUT ACCEPT [7038:6140204] | |
:FORWARD ACCEPT [197:36338] | |
:OUTPUT ACCEPT [6352:557169] | |
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT | |
COMMIT | |
# Completed on Thu Sep 18 12:53:41 2014 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment