Skip to content

Instantly share code, notes, and snippets.

@veapon
Last active December 22, 2015 09:28
Show Gist options
  • Save veapon/6451579 to your computer and use it in GitHub Desktop.
Save veapon/6451579 to your computer and use it in GitHub Desktop.
http://lesca.me/archives/iptables-tutorial-structures-configuratios-examples.html
http://www.cnblogs.com/wangkangluo1/archive/2012/04/19/2457072.html
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
service iptables save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment