Skip to content

Instantly share code, notes, and snippets.

@hduffddybz
Created January 22, 2015 08:49
Show Gist options
  • Save hduffddybz/d0b51a50b7fa47e086df to your computer and use it in GitHub Desktop.
Save hduffddybz/d0b51a50b7fa47e086df to your computer and use it in GitHub Desktop.
some simple iptables.sh
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment