Snort mailing list archives

Re: Snort / Base installation problem -- Related to IPTABLES -- I think


From: Jeff Kell <jeff-kell () utc edu>
Date: Thu, 03 Nov 2005 09:44:24 -0500

Timothy A. Holmes wrote:

Somehow I have gotten something messed up, so that I cannot get access
to the webpages hosted on the snort box -- either by http or https, the
problem goes away when I turn off IPTABLES

You have your iptables rules ordered wrong, and you're missing an http permit.

You have:

-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 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

The above will reject anything else, and you'll never make it past there to get to your otherwise valid:

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

What you need is more like:

-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 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

Jeff



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: