RE: how to do a no duplicate record log.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



netfilter-bounces@xxxxxxxxxxxxxxxxxxx scribbled on :

> hello,list.
>    I need record all ip that input,and log it.but if log the duplicate
> message will occupy more disk space. so I want only log one record for
> one ip, or little records. iptables can do this ? my English is
>    ugly,I'm so sorry! Please help me.

Do I understand correctly that you want each unique IP address logged
only once in the entire log ? I don't know of any mechanism that can do
this out-of-the-box.
Maybe if you use ulogd, log to a database and then run a sql job to it
at regular intervals to remove duplicate source IP's you can achieve
this. But that would be ugly. ;-)


Gr,
Rob



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux