CentOS7 firewall configuration (OFF)

Source: Internet
Author: User
Tags iptables

CentOS7 's firewall configuration is very different from previous versions, and after a great deal of trying, it finally found the key to solving the problem.

CentOS7 This version of the firewall defaults to use the firewall, and the previous version of the use of iptables is not the same. Configure the firewall as follows:

1, shut down the firewall: sudo systemctl stop Firewalld.service


2, turn off boot: sudo systemctl disable Firewalld.service



3. Install iptables Firewall

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

4, configure the Iptables firewall, open the specified port (specific with the previous version, like a lot of online introduction, here is not much introduced)


5. Set iptables firewall boot: sudo systemctl enable iptables?

OK, depending on the configured port, you can access the

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.