CentOs iptable Configuration

Source: Internet
Author: User

CentOs iptable configuration file address:/etc/sysconfig/ipconfig # Generated by iptables-save v1.3.5 on Mon Apr 2 22:57:22 2012 * filter www.2cto.com: input accept [0: 0]: forward accept [0: 0]: output accept [5958: 3482917]-a input-I lo-j ACCEPT-A INPUT-p icmp-m icmp -- icmp-type any-j ACCEPT-A INPUT-m state -- state RELATED, ESTABLISHED-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 8080-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 8888-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 8081-j ACCEPT-a input-p tcp-m state -- state NEW- m tcp -- dport 8082-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 9001-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 3306-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 27017-j ACCEPT-a input-p udp-m state -- state NEW-m udp -- dport 27017-j ACCEPT www.2cto.com-a input-p tcp-m state -- state NEW-m tcp -- dport 3306-j ACCEPT-a input-p tcp -m state -- state NEW-m tcp -- dport 3001-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 3690-j ACCEPT-a input- p udp-m state -- state NEW-m udp -- dport 3690-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 22-j ACCEPT- INPUT-p tcp-m state -- state NEW-m tcp -- dport 25-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 80-j ACCEPT -a input-p tcp-m state -- state NEW-m tcp -- dport 81-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 21- j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 443-j ACCEPT-a input-j REJECT -- reject-with icmp-host-prohibited COMMIT www.2cto.com # Completed on Mon Apr 2 22:57:22 2012 restart takes effect: service iptables restart author MingliC

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.