Created
October 2, 2011 07:09
-
-
Save fadhlirahim/1257169 to your computer and use it in GitHub Desktop.
Useful iptables command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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