Centos 6.6 default iptable rules

Source: Internet
Author: User

Centos 6.6 default iptable rules

Today, I installed a new centos6.6 virtual machine on my computer and nginx without any other settings. Then I found that I can only access nginx on centos and read the iptable rules.

[root@centos6 ~]# iptables-save# Generated by iptables-save v1.4.7 on Sun Jul 26 15:53:13 2015*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [5819:366868]-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT# Completed on Sun Jul 26 15:53:13 2015

It seems that there is no problem. The default policy is acceptable. I can see the last two sentences and I don't understand what it means.

-A input-j REJECT -- reject-with icmp-host-prohibited-a forward-j REJECT -- reject-with icmp-host-prohibited # indicates that the FORWARD table rejects all other packets that do not comply with any of the preceding rules. In addition, a host prohibited message is sent to the rejected host.

Under record, reference http://zhidao.baidu.com/link? Url = required _

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.