Skip to content

Instantly share code, notes, and snippets.

@wirwolf
Last active January 29, 2021 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wirwolf/e516480c1af6f9b8bdca44f474f9582c to your computer and use it in GitHub Desktop.
Save wirwolf/e516480c1af6f9b8bdca44f474f9582c to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "y\n" | sudo ufw reset
sudo service ufw stop
sudo ufw disable
sudo iptables -F
sudo iptables -X
sudo ip6tables -F
sudo ip6tables -X
sudo ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment