How to disable firewall commands in Linux

Source: Internet
Author: User
It is quite common for Linux to shut down firewall commands. so I studied the firewall command for Linux and shared it with you here. I hope you can learn how to disable firewall commands for Linux. 1) it takes effect permanently and will not be enabled after restart: chkconf... it is quite common for Linux to shut down firewall commands. so I studied the firewall command for Linux and shared it with you here. I hope you can learn how to disable firewall commands for Linux. 1) it takes effect permanently. it will not be enabled after restart: chkconfig iptables on disabled: chkconfig iptables off 2) it will take effect immediately. after restart, it will be enabled: service iptables start disabled: the service iptables stop command must be used to enable or disable other services in Linux. When the firewall is enabled, make the following settings to enable the relevant Port, modify the/etc/sysconfig/iptables file, and add the following content: -A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT through this article, you learned about the Linux firewall shutdown command, and how to install the firewall command for Linux. View the development Port netstat-nupl (UDP port) netstat-ntpl (TCP port) to disable a thread PID kill 1666

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.