Last active
March 6, 2023 18:50
-
-
Save mambroziak/f69defec23ef6501bc05a73374d7446d to your computer and use it in GitHub Desktop.
"Disable" iptables on Ubuntu
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
# "Disable" iptables on Ubuntu | |
sudo iptables-save > ~/firewall.rules | |
sudo iptables -X | |
sudo iptables -t nat -F | |
sudo iptables -t nat -X | |
sudo iptables -t mangle -F | |
sudo iptables -t mangle -X | |
sudo iptables -P INPUT ACCEPT | |
sudo iptables -P FORWARD ACCEPT | |
sudo iptables -P OUTPUT ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment