Skip to content

Instantly share code, notes, and snippets.

@fadhlirahim
Created October 2, 2011 07:09
Show Gist options
  • Save fadhlirahim/1257169 to your computer and use it in GitHub Desktop.
Save fadhlirahim/1257169 to your computer and use it in GitHub Desktop.
Useful iptables command
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 110 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 2525 -j ACCEPT
sudo iptables -vnL --line-numbers
sudo iptables -D INPUT <line_number>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment