On Monday 19 August 2002 18:29, Emmanuel Lacour wrote:
> Hi everybody,
>
>
> Is there anyone having an idea on how to limit bandwidth on a linux gw
> doing vpns with freeswan, I.E. for a 1Mbit line with 1 ipsec tunnel on
> interface ppp0, limiting vpn traffic (esp) to 512kbit and internet
> traffic (non vpn) to 512kbit.
>
>
> Thanks in advance!
More info about shaping can be found on www.lartc.org.  And I have some extra 
information on www.docum.org.

You have to add a cbq or htb qdisc to your interfaces and create 2 classes.  
One for vpn traffic and one for non vpn traffic.  I hope that you use fixed 
ports for the vpn traffic so you can use the dst/src port as a filter key.  
You can share the same 1mbit or you can limit each class to 512kbit.

Stef

-- 

[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to