Get the App
SLTechnology News&Howtos  ›  Network Security  › 

CentOS_5x Firewall template

Shulou Source: shulou.com Published: 2022-06-01 01:09:53 10月04日 Update

# Generated by iptables-save v1.3.5 on Tue Jun 23 22:13:01 2014

* filter

: INPUT ACCEPT [0:0]

: FORWARD ACCEPT [0:0]

: OUTPUT ACCEPT [746940:73098378]

: RH-Firewall-1-INPUT-[0:0]

-An INPUT-j RH-Firewall-1-INPUT

-A FORWARD-j RH-Firewall-1-INPUT

-A RH-Firewall-1-INPUT-I lo-j ACCEPT

-A RH-Firewall-1-INPUT-p icmp- m icmp--icmp-type any-j ACCEPT

-A RH-Firewall-1-INPUT-m state-- state RELATED,ESTABLISHED-j ACCEPT

-A RH-Firewall-1-INPUT-p tcp-m state-- state NEW-m tcp-- dport 22-j ACCEPT

-A RH-Firewall-1-INPUT-p tcp-m state-- state NEW-m tcp-- dport 80-j ACCEPT

-A RH-Firewall-1-INPUT-p tcp-m state-- state NEW-m tcp-- dport 8090-j ACCEPT

-A RH-Firewall-1-INPUT-p tcp-m state-- state NEW-m tcp-- dport 3306-j ACCEPT

-A RH-Firewall-1-INPUT-s 10.161.45.211-m state-- state NEW-m tcp-p tcp-- dport 6379-j ACCEPT

-A RH-Firewall-1-INPUT-j REJECT-- reject-with icmp-host-prohibited

COMMIT

# Completed on Tue Jun 23 22:13:01 2014

、 、

The solution that the iptables file cannot be found under centos / etc/sysconfig/

Http://www.centoscn.com/CentosBug/osbug/2014/0919/3779.html

Tags: Files templates firewalls fire protection Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MySQL macOS MariaDB Docker