Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Created August 4, 2012 18:13
Show Gist options
  • Select an option

  • Save atomic-penguin/3259102 to your computer and use it in GitHub Desktop.

Select an option

Save atomic-penguin/3259102 to your computer and use it in GitHub Desktop.
# Generated by iptables-save v1.4.0 on Mon Feb 16 20:47:39 2009
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
# Accept any traffic on loopback
-A INPUT -i lo -j ACCEPT
# Echo Request / Tracert
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 11 -j ACCEPT
# SSH
-A INPUT -p tcp -m tcp --dport 22 --syn -j ACCEPT
# Accept established/related connections
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -m limit --limit 3/min --limit-burst 3 -j LOG --log-prefix "IPTABLES: "
COMMIT
# Completed on Mon Feb 16 20:47:39 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment