Last active
March 19, 2019 20:16
-
-
Save fredeerock/3b19cfb6c2f7ab6b8ae534ec80e14c1d to your computer and use it in GitHub Desktop.
remove all iptables rules
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
# List rules. | |
sudo iptables -L | |
# Set default policies to accept. | |
sudo iptables -P INPUT ACCEPT | |
sudo iptables -P FORWARD ACCEPT | |
sudo iptables -P OUTPUT ACCEPT | |
# Flush and delete tables and chains. | |
sudo iptables -t nat -F | |
sudo iptables -t mangle -F | |
sudo iptables -F | |
sudo iptables -X |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment