Rule to limit outbound packets?

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

 



Hi!

I admin a linux router at a uni dorm, the internet link is adsl (low
upstream bw) so I to write a rule that limits (mostly outbound) p2p
traffic. I'm trying something like this:

iptables -A FORWARD -m limit --limit 200/s --limit-burst 200 -p tcp
--syn --dport 4662 -j ACCEPT
iptables -A FORWARD -p tcp --syn --dport 4662 -j REJECT

or

iptables -A FORWARD -o $IFOUT -m limit --limit 100/s --limit-burst
1000 -p tcp --syn --dport 4662 -j ACCEPT
iptables -A FORWARD -o $IFOUT -p tcp --syn --dport 4662 -j REJECT

but it doesn't seem to work. I can't use hashlimit because I only can
use 2.4 (any patch to use hashlimit in 2.4?).

Thanks a lot!

Edu



[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