Skip to contentSkip to conversation

Log with log amount

DISCUSSION thaian 3 participants 3 messages Oct 28, 2004

lore
Share & tools
lore

thaian

author
#0 lore raw

Hi All

In FreeBSD, ipfw uitiliy can log with amount of packet:
ipfw add 1200 deny log tcp from any to any log-amount 100

But with netfilter, I do not see any option for setting amount of packet I want to log

        iptables -A INPUT -j LOG ...................????

Thai An

#1 lore raw

Hi,

I am not sure, but i think the ULOG target can do this with --ulog-cprange parameter. I may be wrong, i never tested ULOG. Fot ULOG you need a deamon called ulogd.

Quoted 11 lines · thaian

Hi All

In FreeBSD, ipfw uitiliy can log with amount of packet:
ipfw add 1200 deny log tcp from any to any log-amount 100

But with netfilter, I do not see any option for setting amount of packet I want to log

        iptables -A INPUT -j LOG ...................????

Thai An

Signature · 1 line
Bla bla
#2 lore raw
In reply to thaian
Quoted 5 lines · thaian

Hi All

In FreeBSD, ipfw uitiliy can log with amount of packet: ipfw add 1200 deny log tcp from any to any log-amount 100

But with netfilter, I do not see any option for setting amount of packet I want to log iptables -A INPUT -j LOG ...................????

Umm, is

iptables -A INPUT -m limit --limit 100/day -j LOG

what you want? Or are you trying to limit to 100 packets ever?

Alexey