Created
February 4, 2015 20:36
-
-
Save filler/1c059d7676f34618fe00 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
# Generated by iptables-save v1.4.7 on Fri Jun 13 16:48:48 2014 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [58:6064] | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p icmp -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1122 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 7000 -j ACCEPT | |
-A INPUT -j REJECT --reject-with icmp-host-prohibited | |
-A FORWARD -j REJECT --reject-with icmp-host-prohibited | |
COMMIT | |
# Completed on Fri Jun 13 16:48:48 2014 | |
# Generated by iptables-save v1.4.7 on Fri Jun 13 16:48:48 2014 | |
*nat | |
:PREROUTING ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 7000 | |
COMMIT | |
# Completed on Fri Jun 13 16:48:48 2014 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment