Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Limit bandwidth for ipsec vpns
Date: Mon, 19 Aug 2002 17:01:32 +0000	[thread overview]
Message-ID: <marc-lartc-102977656306671@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102977464604347@msgid-missing>

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

-- 

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

  reply	other threads:[~2002-08-19 17:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 16:29 [LARTC] Limit bandwidth for ipsec vpns Emmanuel Lacour
2002-08-19 17:01 ` Stef Coene [this message]
2002-08-19 18:28 ` Michael T. Babcock
2002-08-20 15:56 ` Emmanuel Lacour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102977656306671@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox