>>>>> "Lorin" == Lorin  <[EMAIL PROTECTED]> writes:

    Lorin> Does anyone know where i can find some information about
    Lorin> how to limit bandwith based on IP with iptables?

>From what I understand about iptables, this isn't possible out of the
box (but someone correct me if I'm wrong).  Certainly, you can block
based on IP, but I've never seen anything about limiting (as in, allow
100MB/hour but no more)

Can you be more precise about what you want to do?  Do you want to
limit incoming or outgoing?  You could script a solution, dynamically
assigning iptables rules based on automated log inspection.  Eg, you
could log every packet from an ip address.  A script running in the
background could monitor the iptables logs and change the rule set
based on some criterion.  This wouldn't be very hard.

I have written an interface in python to iptables logs, which you
could use to get started.  It's not too sophisticated, but it works
and could be easily extended.

John Hunter


_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits

Reply via email to