Skip to contentSkip to conversation

boring question

LARTC James 3 participants 5 messages Apr 22, 2004 – Apr 26, 2004

lore
Share & tools
lore

James

author
#0 lore raw

<P>folks,<BR><BR>Sorry to disturb you with such a basic question, but I am new to bandwidth control , shaper etc...&nbsp; I tried reading some doc about it, but couldn´t apply them to solve my (following problem):<BR><BR>I have this..<BR><BR>[internet]------[eth0][linux box][eth1]--------[my lan]<BR><BR><BR>ADSL (256k)<BR>eth0: 200.200.200.200&nbsp;&nbsp;&nbsp; &lt;- ex.<BR>eth1: 192.168.7.254&nbsp; lan 192.168.7.0/24<BR><BR>I want, ex.: that user in my lan (192.168.7.10), ain´t trash my whole bandwidth with kazaa, pop, smtp whatever... so, I want this one to download only 15kps...&nbsp;&nbsp; <BR>What could I do ?<BR><BR></P><br>
<br>
________________________________________________<br>
Message from N3T Webmail - ver.2.7<br>

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 11 lines · James

folks,

Sorry to disturb you with such a basic question, but I am new to bandwidth control , shaper etc... I tried reading some doc about it, but couldn´t apply them to solve my (following problem):

I have this..

[internet]------[eth0][linux box][eth1]--------[my lan]

Quoted 8 lines

ADSL (256k)
eth0: 200.200.200.200 <- ex.
eth1: 192.168.7.254 lan 192.168.7.0/24

I want, ex.: that user in my lan (192.168.7.10), ain´t trash my whole bandwidth with kazaa, pop, smtp whatever... so, I want this one to download only 15kps...
What could I do ?

Hi James,

since I'm a noob on this list I'll answer the question to save the head guys typing.

You have almost the exact same setup as I have, except my Linux box is a dedicated Smoothwall which I added QoS to. I'm going to assume you want to keep that box as a normal multi-purpose box rather than reformat it to Smoothwall :-)

I wrote a set of instructions and a pretty decent script based on Wondershaper which will help you. Both are on my webserver at the following address:

http://www.ivan.hawkes.tv/contentitem.aspx?idY&ciid@2

There are a couple of easy to follow articles there which I put together based on the harder to read but more comprehensive stuff held on lartc. Now, my adsl-shaper script isn't going to do what you want since I took out the IP based stuff since it wasn't relevant to me, so just follow the general instructions but use wshaper as your shaping script instead since it does support IP based limiting.

You will need to customise the script to get your IP addresses in, but basically what you are looking to do is simply put him into his own queueing discipline with a max bandwidth limit attached, and let all other traffic go through some other qdisc.

It is important to note that this generally works well for outgoing traffic but is not particularly effective against incoming traffic since that is *pushed* onto your machine and it has no way to control this. If your flatmate is maxing your bandwidth with mp3 downloads maybe a quick slap might sort him/her out ;->

Signature · 5 lines
http://www.ivanhawkes.com  |  ICQ: 173-392-038

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to James
Quoted 3 lines · Mr Ivan Hawkes

It is important to note that this generally works well for outgoing traffic but is not particularly effective against incoming traffic since that is *pushed* onto your machine and it has no way to control this.

You can control incoming bandwidth much the same as outbound - but it's hard to keep latency low all of the time.

Andy.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to James
Quoted 8 lines · Andy Furniss
Quoted 4 lines · Mr Ivan Hawkes

It is important to note that this generally works well for outgoing traffic but is not particularly effective against incoming traffic since that is *pushed* onto your machine and it has no way to control this.

Quoted 6 lines

You can control incoming bandwidth much the same as outbound - but it's hard to keep latency low all of the time.

Andy.

Are you able to selectively control incoming bandwidth? e.g. I have some BT's running sucking up all that good bandwidth and my incoming pipe gets saturated (it's 2MB, so this doesn't generally happen). How would I tell the BT streams to slow down while giving more priority to the important stuff? I know how to do it on egress, just not on ingress.

Signature · 5 lines
http://www.ivanhawkes.com  |  ICQ: 173-392-038

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to James
Quoted 14 lines · Mr Ivan Hawkes
Quoted 12 lines · Andy Furniss
Quoted 4 lines · Mr Ivan Hawkes

It is important to note that this generally works well for outgoing traffic but is not particularly effective against incoming traffic since that is *pushed* onto your machine and it has no way to control this.

You can control incoming bandwidth much the same as outbound - but it's hard to keep latency low all of the time.

Quoted 9 lines
Quoted 3 lines

Andy.

Are you able to selectively control incoming bandwidth? e.g. I have some BT's running sucking up all that good bandwidth and my incoming pipe gets saturated (it's 2MB, so this doesn't generally happen). How would I tell the BT streams to slow down while giving more priority to the important stuff? I know how to do it on egress, just not on ingress.

You can treat it a egress traffic coming from shaping box to LAN. So the marking/filtering should be no different. In the BT case, there is a project on sf.net called ipp2p which can mark it, it needs you to patch netfilter/kernel with connmark. I don't use it so can't tell you in detail.

Andy.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/