Skip to content

Instantly share code, notes, and snippets.

@aereal
Created December 17, 2011 09:27
Show Gist options
  • Save aereal/1489784 to your computer and use it in GitHub Desktop.
Save aereal/1489784 to your computer and use it in GitHub Desktop.
iptables
*filter
:INPUT DROP [398:64076]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [7801:1379545]
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 6667 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment