Traffic limitation with iptables
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?
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