[LARTC] ppp+vpn+htb

hiphin hiphin at cat-net.co.yu
Wed Apr 6 10:08:40 CEST 2005


Hi Wang,...

>Because ppp traffic is over your real network link, you can control ppp
>traffic over that physic device. But I think it have limitation, because
>with this way you can't look into the ppp layer and differential
>TCP/IP applications encapsulated in ppp layer

yes, that is my question, if I control eth0 only, I can not have per user 
limmiting...

can I do something simple like this:

/sbin/tc qdisc add dev eth0 root handle 1: htb default 10
/sbin/tc class add dev eth0 parent 1: classid 1:1 htb rate 256kbit

/sbin/tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 32kbit ceil \
   256kbit prio 1 burst 64kbit cburst 96kbit
/sbin/tc filter add dev ppp0 protocol ip parent 1:0 prio 1 u32 match ip dest 
\
   $REMOTEIP0 folow 1:10

/sbin/tc class add dev ppp1 parent 1:1 classid 1:20 htb rate 32kbit ceil \
   256kbit prio 1 burst 64kbit cburst 96kbit
/sbin/tc filter add dev ppp1 protocol ip parent 1:0 prio 1 u32 match ip dest 
\
   $REMOTEIP1 folow 1:20

...

or IMQ must be involved...
there must be way, to do bandwidth sharing throught vpn-ppp connections

thanks 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ds9a.nl/pipermail/lartc/attachments/20050406/96146492/attachment.htm


More information about the LARTC mailing list