Enable iptables firewall in CentOS7.2

Source: Internet
Author: User
In fact, these things should be clearly written as soon as they are completed. they have been written for a long time. maybe they have not been written in some places. I hope to see the kids shoes for help and I will update them again, if any error occurs, please criticize and correct it. I used iptables as a firewall before 7.0 and firewall after 7.0. I don't know why, but most people use iptables, so I also use it. 1. disable firewallViewCode

In fact, these things should be clearly written as soon as they are completed. they have been written for a long time. maybe they have not been written in some places. I hope to see the kids shoes for help and I will update them again, if any error occurs, please criticize and correct it.

I used iptables as a firewall before 7.0 and firewall after 7.0. I don't know why, but most people use iptables, so I also use it.

1. disable firewall

View Code

2. install the iptables firewall.

1. install

View Code

2. configuration

View Code

OK. Now, your iptables has been configured. if you want to add a port later, proceed to the next step.

3. open ports

View Code

Well, these are some basic configurations related to iptables. I hope you can tell me something that is difficult.

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.