Skip to content

Instantly share code, notes, and snippets.

@zh-h
Created March 13, 2020 16:47
Show Gist options
  • Save zh-h/ffae133368f08cbd0ee5820b2ddfcee1 to your computer and use it in GitHub Desktop.
Save zh-h/ffae133368f08cbd0ee5820b2ddfcee1 to your computer and use it in GitHub Desktop.
off firewall
sudo systemctl stop firewalld.service
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F
chkconfig iptables off
sudo service iptables off
sudo service iptables stop
sudo apt-get purge netfilter-persistent
sudo apt autoremove
sudo apt purge
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment