Skip to content

Instantly share code, notes, and snippets.

Created April 22, 2016 15:45
Show Gist options
  • Save anonymous/e61df22f74742fbe7f220e6865bc07e4 to your computer and use it in GitHub Desktop.
Save anonymous/e61df22f74742fbe7f220e6865bc07e4 to your computer and use it in GitHub Desktop.
iptables
*filter
:INPUT DROP [50:2320]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [122:8702]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
COMMIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment