Re: ppp+vpn+htb

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux