PDA

View Full Version : iptables & snort log entries


jtapper
March 16th, 2007, 11:33 AM
I have been using iptables and snort in my server for a while. Now when I check snort logs I find entries from ip-addresses / net work blocks filetered by iptables.
Does snort process packets before iptables or how is this possible?

Situation is that I have few hundred rules in iptables for certain abusive IP blocks. And even these appear in
iptables -L -n -v
with DROP marking, some of these still make it to snort alert logs. Iptables seem to work, because the counters for rules are working.

Can anyone confirm that snort sniffs packets before they are iptables processed or is my iptables malfunctioning?

wray.justin
March 19th, 2007, 09:29 AM
jtapper:

Is 'snort' running with INLINE mode?


4.3 --faq-- --snort-- --faq-- --snort-- --faq-- --snort-- --faq--

Q: Snort is behind a firewall (ipf/pf/ipchains/ipfilter) and awfully quiet... A: Your firewall rules will also block traffic to the snort processes. (http://www.snort.org/docs/faq.html#4.3)

However if you are not running in INLINE mode, then snort should see all traffic, even the dropped packets.

jtapper
March 20th, 2007, 12:28 PM
Inline mode is not on, so it seems that this is pretty normal. Thanks!

wray.justin
March 22nd, 2007, 02:38 PM
No problem