Skip to content

Instantly share code, notes, and snippets.

@filler
Created February 4, 2015 20:36
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 filler/1c059d7676f34618fe00 to your computer and use it in GitHub Desktop.
Save filler/1c059d7676f34618fe00 to your computer and use it in GitHub Desktop.
# 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