The solution to the local ping failure after installing the virtual box virtual machine Linux system

The Linux system has its own firewall iptables, and iptables can set many security rules. However, if the configuration error can easily lead to various network problems, how to disable the firewall? This experience uses the centos system as an example to demonstrate how to disable the linux firewall.

clear iptables rules

  1. 1

       If the activated iptables firewall does not want to be closed, you can clear the firewall through iptables -F. Then view it through iptables -L

    How to turn off iptables in linux How to turn off the firewall in linux

    END

Close the iptables service

  1. If you want to close iptables, you can stop it with the command /etc/init.d/iptables stop

    How to turn off iptables in linux How to turn off the firewall in linux

  2. In addition, the service name of iptables is also called iptables. Can be stopped by service iptables stop

    How to turn off iptables in linux How to turn off the firewall in linux

  3. Turn off autostart iptables

    For the above command, although iptables is turned off. But if it is set to start automatically, after restarting. Iptables is automatically enabled again (command chkconfig to view the process services automatically started by the system )

    How to turn off iptables in linux How to turn off the firewall in linux

  4. Therefore, we also have to turn off automatic to avoid restarting the firewall after restarting.

    [root@localhost ~]# chkconfig iptables off (set auto-start to off)

    # chkconfig --del iptables (remove autostart on boot)

    How to turn off iptables in linux How to turn off the firewall in linux

  5. Graphical interface closed

    For the above methods are all command-line interface operations, then the graphical interface closes the firewall (using the setup command)

    How to turn off iptables in linux How to turn off the firewall in linux

  6. After opening the network parameter settings of the graphical interface, click [Firewall Configuration] and click to close the firewall settings (click to close the enable)

    How to turn off iptables in linux How to turn off the firewall in linux

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326673432&siteId=291194637