All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] share bandwith between vpns
@ 2004-11-16  9:26 Denis Kot
  2004-11-16 15:48 ` Denis Kot
  2004-11-16 17:36 ` Maxim Shpakov
  0 siblings, 2 replies; 3+ messages in thread
From: Denis Kot @ 2004-11-16  9:26 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LARTC] share bandwith between vpns
  2004-11-16  9:26 [LARTC] share bandwith between vpns Denis Kot
@ 2004-11-16 15:48 ` Denis Kot
  2004-11-16 17:36 ` Maxim Shpakov
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kot @ 2004-11-16 15:48 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] share bandwith between vpns
  2004-11-16  9:26 [LARTC] share bandwith between vpns Denis Kot
  2004-11-16 15:48 ` Denis Kot
@ 2004-11-16 17:36 ` Maxim Shpakov
  1 sibling, 0 replies; 3+ messages in thread
From: Maxim Shpakov @ 2004-11-16 17:36 UTC (permalink / raw)
  To: lartc

Hello Denis,

Tuesday, November 16, 2004, 5:48:06 PM, you wrote:

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

use IMQ [ http://www.linuximq.net/ ]  device for this.
Make traffic from all of your ppp interfaces to go through the imq
devices and make static shaping rules for all  client ips.
With IMQ you can also shape outgoing traffic not only incoming stream.

This work nice for me HTB+IMQ+PPP(vpn)

-- 
Best regards,
 Maxim           mailto:maxim@osetia.org


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-16 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-16  9:26 [LARTC] share bandwith between vpns Denis Kot
2004-11-16 15:48 ` Denis Kot
2004-11-16 17:36 ` Maxim Shpakov

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.