share bandwith between vpns

Linux Advanced Routing and Traffic Control

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

 



I have clients, which connectin to Internet through vpn. I want to
dynamically share bandwith between vpn connections, so if there few
connections, then they get all bandwith, if more then they get their
minimal guaranteed bandwith. my idea is:
ip-up.local:

tc class add dev $DEV parent 1:1 classid 1:2${1/ppp/} htb rate
$[$RATEUP/$VPNS]kbit ceil ${RATEUP}kbps
tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip src
$5 flowid 1:2${1/ppp/}

ip-down.local:
tc class del dev $DEV parent 1:1 classid 1:2${1/ppp/} htb rate
$[$RATEUP/$VPNS]kbit ceil ${RATEUP}kbps
tc filter del dev $DEV protocol ip parent 1:0 prio 1 u32 match ip src
$5 flowid 1:2${1/ppp/}

where $DEV is server's outgoing interface, $RATEUP is outgoing
bandwith and $VPNS is maximum possible vpn connections.

maybe there is more better method? and what to do with incomming
traffic? reroute it on imq?

and as I understand there is can't be a transparent proxy?

please help

p.s. sorry for my english.... Smile

-- 
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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