Hi, I'm trying to set-up a Web server firewall, this box will be running Fedora 4 and will be a dedicated Web Server nothing else. The connection that I have is ADSL modem, going to a Switch (I'm allowed two connections by Mac address).
I've tried the modifying the RH-Firewall-1 but my port 80 and 22 is still hidden (according to -shields up test).
Here is my iptable firewall:
*filter
:INPUT DROP
:FORWARD DROP
:OUTPUT ACCEPT
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --5353 - 224.0.0.251 -j ACCEPT
-A RH-Firewall-1 INPUT -m state --state EXTABLISHED,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 -p tcp -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -p tcp --dport 22 -j ACCEPT
commit
What am I doing wrong here?
Oh just so you know, this is mostly for learning experience.
Thanks in advance.
I've tried the modifying the RH-Firewall-1 but my port 80 and 22 is still hidden (according to -shields up test).
Here is my iptable firewall:
*filter
:INPUT DROP
:FORWARD DROP
:OUTPUT ACCEPT
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --5353 - 224.0.0.251 -j ACCEPT
-A RH-Firewall-1 INPUT -m state --state EXTABLISHED,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 -p tcp -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -p tcp --dport 22 -j ACCEPT
commit
What am I doing wrong here?
Oh just so you know, this is mostly for learning experience.
Thanks in advance.