All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Don Gould - BVC" <dig@bvc.com.au>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] pptp, vpn & traffic control
Date: Fri, 19 Dec 2003 00:40:26 +0000	[thread overview]
Message-ID: <marc-lartc-107179592710854@msgid-missing> (raw)
In-Reply-To: <marc-lartc-107170129112910@msgid-missing>

On Thu, 18 Dec 2003 17:21:46 -0600 (CST), Martin A. Brown wrote
> Hello Doug,

Hi MartiUG :)


>  : Can you provide some example syntax for me given the following...
> 
> I'll refrain until you have a more fully-formed scenario.  

bugger... having done lots of reading yesterday the one thing I learnt about 
htb is that I'm going to need some help! :)


> Since you 
> are new to Linux traffic control, let me suggest that you consider 
> using tcng
> (I'm a big fan--it's much more human-legible than raw tc syntax).  
> See my tcng and HTB HOWTO [0].

Hummm....  let's stick to one system at a time?  

Having read all about HTB yesterday I do actually understand most of it I 
think...

Just not sure how I'm going to bind the bits to ppp yet...

> 
>  : How do I make the limiting start when the ppp session comes up?
> 
> Good question.....this will probably require some glue code.  Shell, 
> perl, whatever you like.  Others may have better suggestions.  In 
> short, the traffic control structures inside the kernel are static-
> -they can be manipulated (added/removed), although my impression 
> (and my own usage) relies on creating a static traffic control 
> configuration.  Regardless, if you can hook into an "ip-up" or "if-
> up" script on your PPTP server, then you can write raw tc commands 
> which create the traffic control structures
> (and iptables, hint...hint) for each connection.

I spent some time this morning looking at ip-up.local and its parameters.

I can see I can get the pppX, local and remote ip numbers.

My current thinking is that I just add a line to the script to 'add'/bind the 
new ip when the connection goes live, then add a line to ip-down.local to 
remove the rule when the link goes down.

So how about this...?...

# In ip-up.local
tc qdisk add dev ppp<X> root handle 1:<X> htb
tc class add dev ppp<X> parent 1:<X> classid 1:<X> htb rate 56kbit ceil 56kbit
tc filter add dev ppp<X> parent 1:<X> protocol ip prio 1 u32 \
  match ip dest <X-remoteIP> flowid 1:<X>

How do I remove all this when the ppp connection goes off line?  


Cheers DiG

--
Don Gould
The technology exists to give every home 10mbits per second for $10 per month!
http://marc.theaimsgroup.com/?l=poptop-server&r=1&w=2 - For all your poptop 
needs.
http://sourceforge.net/donate/ - Give a little and watch the love grow!

www.skype.com - sorry it's not a linux tool but it's very kewl!  Wish a linux 
guru would make something for nix as good as this!
news@dslprime.com - Best information about DSL technology and trends I've 
found yet.
http://www.linuxforum.com/forums/ -

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-12-19  0:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17 22:23 [LARTC] pptp, vpn & traffic control Don Gould - BVC
2003-12-18  0:26 ` Martin A. Brown
2003-12-18  2:20 ` Don Gould - BVC
2003-12-18 23:21 ` Martin A. Brown
2003-12-19  0:40 ` Don Gould - BVC [this message]

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-107179592710854@msgid-missing \
    --to=dig@bvc.com.au \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.