* [LARTC] shape outgoing/upload traffic PER-IP.
@ 2004-05-04 19:32 Cristiano Soares
2004-05-05 2:40 ` gypsy
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Cristiano Soares @ 2004-05-04 19:32 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
does anyone know a way to shape outgoing/upload traffic per ip?
I have a network and i want to limit the upload with 100kbit per user. Ex:
192.168.1.20 ----> 1024kbit-DOWN / 100kbit-UP
192.168.1.21 ----> 1024kbit-DOWN / 100kbit-UP
and so on.......
Ive tried CBQ and HTB, but couldnt get is right. the only thing that I did in upload bases was:
"tc qdisc add dev ppp0 root tbf rate 220kbit latency 50ms burst 1540"
witch is for the whole interface. not for a simple IP.
Thanks a lot.
Cristiano Soares
[-- Attachment #2: Type: text/html, Size: 1609 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] shape outgoing/upload traffic PER-IP.
2004-05-04 19:32 [LARTC] shape outgoing/upload traffic PER-IP Cristiano Soares
@ 2004-05-05 2:40 ` gypsy
2004-05-05 7:29 ` Andy Furniss
2004-05-05 13:01 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: gypsy @ 2004-05-05 2:40 UTC (permalink / raw)
To: lartc
> Cristiano Soares wrote:
>
> does anyone know a way to shape outgoing/upload traffic per ip? I have a network and i want to limit the upload with 100kbit per user.
> Ex:
> 192.168.1.20 ----> 1024kbit-DOWN / 100kbit-UP
> 192.168.1.21 ----> 1024kbit-DOWN / 100kbit-UP
>
> Ive tried CBQ and HTB, but couldnt get is right. the only thing that I
Grab and read this file:
ftp://andthatsjazz.net/pub/lartc/ultimatePM.sh
The gist of the above is that you attach a u32 filter to place each IP
where you want it.
Then visit Martin Brown's site:
http://www.linux-ip.net/html/linux-ip.html
more specifically:
http://www.tldp.org/HOWTO/ADSL-Bandwidth-Management-HOWTO/implementation.html
for A Better Way (thanks Martin! I look forward to your posts because
they are the only ones I really understand <shrug>).
Gypsy
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] shape outgoing/upload traffic PER-IP.
2004-05-04 19:32 [LARTC] shape outgoing/upload traffic PER-IP Cristiano Soares
2004-05-05 2:40 ` gypsy
@ 2004-05-05 7:29 ` Andy Furniss
2004-05-05 13:01 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Andy Furniss @ 2004-05-05 7:29 UTC (permalink / raw)
To: lartc
gypsy wrote:
>>Cristiano Soares wrote:
>>
>>does anyone know a way to shape outgoing/upload traffic per ip? I have a network and i want to limit the upload with 100kbit per user.
>>Ex:
>>192.168.1.20 ----> 1024kbit-DOWN / 100kbit-UP
>>192.168.1.21 ----> 1024kbit-DOWN / 100kbit-UP
>>
>>Ive tried CBQ and HTB, but couldnt get is right. the only thing that I
>
>
> Grab and read this file:
>
> ftp://andthatsjazz.net/pub/lartc/ultimatePM.sh
>
> The gist of the above is that you attach a u32 filter to place each IP
> where you want it.
If you are doing NAT on your shaping box then you need to mark each IP
address rather than use u32 for outbound, as traffic shaping happens
after NAT.
Have a look at the KPTD on www.docum.org .
Andy.
>
> Then visit Martin Brown's site:
> http://www.linux-ip.net/html/linux-ip.html
> more specifically:
> http://www.tldp.org/HOWTO/ADSL-Bandwidth-Management-HOWTO/implementation.html
>
> for A Better Way (thanks Martin! I look forward to your posts because
> they are the only ones I really understand <shrug>).
>
> Gypsy
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] shape outgoing/upload traffic PER-IP.
2004-05-04 19:32 [LARTC] shape outgoing/upload traffic PER-IP Cristiano Soares
2004-05-05 2:40 ` gypsy
2004-05-05 7:29 ` Andy Furniss
@ 2004-05-05 13:01 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Andy Furniss @ 2004-05-05 13:01 UTC (permalink / raw)
To: lartc
gypsy wrote:
>
> Grab and read this file:
>
> ftp://andthatsjazz.net/pub/lartc/ultimatePM.sh
>
I forgot to say - if you use DSL tweaking uprate right upto the limit
with bulk traffic may not be a good idea. There are atm overheads and
thay are greater (as %) for small packets eg. htb counts empy ack as 40
bytes but it's 106 on wire. If people start gaming (30 small pps up
each) things may fall apart.
AFAIK there is no MPU for HTB like there is for CBQ.
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-05 13:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-04 19:32 [LARTC] shape outgoing/upload traffic PER-IP Cristiano Soares
2004-05-05 2:40 ` gypsy
2004-05-05 7:29 ` Andy Furniss
2004-05-05 13:01 ` Andy Furniss
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.