Snort mailing list archives

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


From: "Patrick Harper" <patrick () internetsecurityguru com>
Date: Thu, 3 Nov 2005 09:36:31 -0600

 
He was using my new setup doc, it does not allow for HTTP, only HTTPS.  The
problem was he had them in the wrong order, I will have to include a little
description of how the rules are read and used in the next version.


Patrick S. Harper | CISSP RHCT MCSE
www.internetsecurityguru.com

Just because your paranoid, doesn't mean they're not out to get you 


-----Original Message-----
From: snort-users-admin () lists sourceforge net
[mailto:snort-users-admin () lists sourceforge net] On Behalf Of Jeff Kell
Sent: Thursday, November 03, 2005 8:44 AM
To: Timothy A. Holmes
Cc: Snort Users
Subject: Re: [Snort-users] Snort / Base installation problem -- Related to
IPTABLES -- I think

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




-------------------------------------------------------
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: