* [LARTC] tc&htb
@ 2003-11-12 6:37 Eddie
2003-11-12 18:07 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Eddie @ 2003-11-12 6:37 UTC (permalink / raw)
To: lartc
Hi all.
I'm very new to Linux and the whole traffic shaping thing.
Now this is what I've got.A 128Kbit line on eth0 and a 100+ network on
eth1.The mail server is on the internal network(eth1 side).
This is what I want.
They run banking software that uses port 15000-15010.I want the bank
ports and if I'm going to ssh INTO the box to get all bandwidth,that is
128Kbit.Then I want the internal users limited to 96Kbit for web,32 for
mail in and out and 10Kbit for other stuff.I also want them all to share
bandwidth if not use(banking is not done most of the time but if it is
it should get the most)
I got this far and have no idea,I've been reading advance routing and
traffic control,but as the song goes,I'm not the sharpest tool int the
shed.
This is what I've got so far(taken from
15.10. Example of a full nat solution with QoS)
My main problem,if this is right,is with the filter.I don't know how
Please help me because I'm thinking traffic control is a myth?
Thanks Eddie
CEIL\x128
tc qdisc add dev eth0 root handle 1: htb default 13
tc class add dev eth0 parent 1: classid 1:1 htb rate ${CEIL}kbit ceil ${CEIL}kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate $(CEIL)kbit ceil $(CEIL)kbit prio 0
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 96kbit ceil ${CEIL}kbit prio 1
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 32kbit ceil ${CEIL}kbit prio 2
tc class add dev eth0 parent 1:1 classid 1:13 htb rate 10kbit ceil ${CEIL}kbit prio 2
tc qdisc add dev eth0 parent 1:10 handle 120: sfq perturb 10
tc qdisc add dev eth0 parent 1:11 handle 130: sfq perturb 10
tc qdisc add dev eth0 parent 1:12 handle 140: sfq perturb 10
tc qdisc add dev eth0 parent 1:13 handle 150: sfq perturb 10
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] tc&htb
2003-11-12 6:37 [LARTC] tc&htb Eddie
@ 2003-11-12 18:07 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-11-12 18:07 UTC (permalink / raw)
To: lartc
On Wednesday 12 November 2003 07:37, Eddie wrote:
> Hi all.
> I'm very new to Linux and the whole traffic shaping thing.
> Now this is what I've got.A 128Kbit line on eth0 and a 100+ network on
> eth1.The mail server is on the internal network(eth1 side).
>
> This is what I want.
> They run banking software that uses port 15000-15010.I want the bank
> ports and if I'm going to ssh INTO the box to get all bandwidth,that is
> 128Kbit.Then I want the internal users limited to 96Kbit for web,32 for
> mail in and out and 10Kbit for other stuff.I also want them all to share
> bandwidth if not use(banking is not done most of the time but if it is
> it should get the most)
>
> I got this far and have no idea,I've been reading advance routing and
> traffic control,but as the song goes,I'm not the sharpest tool int the
> shed.
>
> This is what I've got so far(taken from
> 15.10. Example of a full nat solution with QoS)
> My main problem,if this is right,is with the filter.I don't know how
> Please help me because I'm thinking traffic control is a myth?
Your tc commands are ok. For the filters, you can use the u32 filter that can
match on port and or ip address or the fw fliter so you can iptables to
classify the packets.
For some examples, see www.docum.org
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-12 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 6:37 [LARTC] tc&htb Eddie
2003-11-12 18:07 ` Stef Coene
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.