From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Kot Date: Tue, 16 Nov 2004 15:48:06 +0000 Subject: [LARTC] share bandwith between vpns Message-Id: <3cfad9ca041116074867990007@mail.gmail.com> List-Id: References: <3cfad9ca0411160126767c3b37@mail.gmail.com> In-Reply-To: <3cfad9ca0411160126767c3b37@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/