From: Denis Kot <denis.kot@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] share bandwith between vpns
Date: Tue, 16 Nov 2004 15:48:06 +0000 [thread overview]
Message-ID: <3cfad9ca041116074867990007@mail.gmail.com> (raw)
In-Reply-To: <3cfad9ca0411160126767c3b37@mail.gmail.com>
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/
next prev parent reply other threads:[~2004-11-16 15:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-16 9:26 [LARTC] share bandwith between vpns Denis Kot
2004-11-16 15:48 ` Denis Kot [this message]
2004-11-16 17:36 ` Maxim Shpakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3cfad9ca041116074867990007@mail.gmail.com \
--to=denis.kot@gmail.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.