LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Chain RH-Firewall-1-INPUT (2 references) (https://www.linuxquestions.org/questions/linux-newbie-8/chain-rh-firewall-1-input-2-references-865394/)

maobin 02-28-2011 12:12 AM

Chain RH-Firewall-1-INPUT (2 references)
 
Hi,
any one has any idea whats the diff between
Chain RH-Firewall-1-INPUT (2 references)
and
Chain INPUT (policy ACCEPT)?

corp769 02-28-2011 01:02 AM

Quote:

Originally Posted by maobin (Post 4273541)
Hi,
any one has any idea whats the diff between
Chain RH-Firewall-1-INPUT (2 references)
and
Chain INPUT (policy ACCEPT)?

Looks like you are using RedHat, no? :)

Code:

/etc/sysconfig/iptables:
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A 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 -i eth0 -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j DROP
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

I pulled this random segment off of the internet. Looks like there is no difference; it is just a reference, nothing less, nothing more.

Cheers,

Josh


All times are GMT -5. The time now is 05:09 PM.