Disable CentOS7 firewall

Source: Internet
Author: User
The firewall configuration of CentOS7 is very different from that of the previous version. after a lot of attempts, we finally find the key to solving the problem. The firewall of CentOS7 uses firewall by default, this is different from the previous version of iptables. Configure the firewall as follows: 1. disable the firewall: sudosystemctlstopfirewalld. service2. disable the boot startup: su

The firewall configuration of CentOS7 is very different from that of previous versions. after a lot of attempts, the key to solving the problem is finally found.

The firewall of CentOS7 uses firewall by default, which is different from the previous version using iptables. Configure the firewall as follows:

1. disable the firewall:sudo systemctl stop firewalld.service

2. disable startup:sudo systemctl disable firewalld.service

 

3. install iptables firewall

Run the following command to install iptables firewall:sudo yum install iptables-services

?

4. configure the iptables firewall and open the specified port (similar to the previous version, there are many introductions on the Internet, but I will not discuss them here)

 

5. set iptables firewall to start upon startup:sudo systemctl enable iptables

?

OK. You can access the service based on the configured port.

Related Article

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.