netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Log and Drop with OSSEC
@ 2010-05-07 15:41 David ROBERT
  2010-05-13  9:47 ` David ROBERT
  0 siblings, 1 reply; 2+ messages in thread
From: David ROBERT @ 2010-05-07 15:41 UTC (permalink / raw)
  To: netfilter

Hi All,

I have a very basic question. I am updating an active response script
for OSSEC that add DROP rules. I added rules to log packets being
dropped:
Ex for IP 1.1.1.1

iptables -I INPUT -s 1.1.1.1 -m limit --limit 1/sec -j LOG
--log-prefix OSSEC-HIDS --log-level 7 (rule added)
iptables -I INPUT -s 1.1.1.1 -j DROP (original rule)

It doesn't log, it actually logs if I only run the first rule, as soon
as I run the DROP rule, it DROP packets indeed, but it won't log
anymore.

Thanks

David ROBERT
http://blog.ombrepixel.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Log and Drop with OSSEC
  2010-05-07 15:41 Log and Drop with OSSEC David ROBERT
@ 2010-05-13  9:47 ` David ROBERT
  0 siblings, 0 replies; 2+ messages in thread
From: David ROBERT @ 2010-05-13  9:47 UTC (permalink / raw)
  To: netfilter

Hi All,

This was too obvious so I couldn't find it... I did a "-I" for the
DROP rule, so obviously it was matched before the LOG rule... tsss..

David

2010/5/7 David ROBERT <castlebbs@gmail.com>:
> Hi All,
>
> I have a very basic question. I am updating an active response script
> for OSSEC that add DROP rules. I added rules to log packets being
> dropped:
> Ex for IP 1.1.1.1
>
> iptables -I INPUT -s 1.1.1.1 -m limit --limit 1/sec -j LOG
> --log-prefix OSSEC-HIDS --log-level 7 (rule added)
> iptables -I INPUT -s 1.1.1.1 -j DROP (original rule)
>
> It doesn't log, it actually logs if I only run the first rule, as soon
> as I run the DROP rule, it DROP packets indeed, but it won't log
> anymore.


-- 
David ROBERT

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-13  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 15:41 Log and Drop with OSSEC David ROBERT
2010-05-13  9:47 ` David ROBERT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).