Skip to content

Instantly share code, notes, and snippets.

@mambroziak
Last active March 6, 2023 18:50
Show Gist options
  • Save mambroziak/f69defec23ef6501bc05a73374d7446d to your computer and use it in GitHub Desktop.
Save mambroziak/f69defec23ef6501bc05a73374d7446d to your computer and use it in GitHub Desktop.
"Disable" iptables on Ubuntu
# "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