Skip to contentSkip to conversation

Traffic limitation with iptables

DISCUSSION Xemul 2 participants 2 messages Jul 22, 2003 – Jul 23, 2003 netfilter

lore
Share & tools
lore

Xemul

author
#0 lore raw

Hi.
I wanna solve such a problem:
When I see that byte counter on some chain reaches or exceedes any fixed value - then IMMEDIATELY insert into that cahin new first rule (e.g. -j DROP) or delete some rules from any other chain. Or more abstract - how can can discover that byte counter is higher than smth without "polling" chains?

#1 lore raw
Quoted 7 lines · Xemul

Hi.
I wanna solve such a problem:
When I see that byte counter on some chain reaches or exceedes any fixed value - then IMMEDIATELY insert into that cahin new first rule (e.g. -j DROP) or delete some rules from any other chain. Or more abstract - how can can discover that byte counter is higher than smth without "polling" chains?

you might want to look for the quota match.

btw, this is more a user than a develoment question!

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie