Created
December 27, 2015 00:38
-
-
Save alexandrinos/bf7c14dce2f4a71f1113 to your computer and use it in GitHub Desktop.
Firewal Linux aka iptables
This file contains hidden or 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
#show all rules in a table ; you can use alternatively -L | |
sudo iptables -S | |
#show rule number in each of the 3 possible cases: INPUT OUTPUT FORWARD | |
sudo iptables -L --line-numbers | |
#delete a rule with a number; syntax: iptables -D <OUTPUT|INPUT|FORWARD> <line_number> | |
sudo iptables -D OUTPUT 3 | |
#delete all rules in a chain ;chain= INPUT, OUTPUT or FORWARD | |
sudo iptables -F INPUT | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment