Bluehost.com Web Hosting $6.95

[Samba] speed limit

This is a discussion on [Samba] speed limit within the Samba forums, part of the Networking and Network Related category; Hello, Does anybody know how to limit ul/dl speed for shares? Thanks in advance. -- To unsubscribe from this list ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-20-2008
Drunix
 
Posts: n/a
Default [Samba] speed limit

Hello,

Does anybody know how to limit ul/dl speed for shares?

Thanks in advance.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 08-21-2008
Drunix
 
Posts: n/a
Default [Samba] speed limit

Hello,

Does anybody know how to limit ul/dl speed for shares?

Thanks in advance.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #3 (permalink)  
Old 08-21-2008
Michael Heydon
 
Posts: n/a
Default Re: [Samba] speed limit

Drunix wrote:
> Hello,
>
> Does anybody know how to limit ul/dl speed for shares?
>
> Thanks in advance.
>


Samba doesn't do this, you would need to implement bandwidth shaping
using what ever tools are appropriate for your OS.

Please don't send duplicate messages.

*Michael Heydon - IT Administrator *
michaelh@jaswin.com.au <mailto:michaelh@jaswin.com.au>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #4 (permalink)  
Old 08-21-2008
Michael Heydon
 
Posts: n/a
Default Re: [Samba] speed limit

> could you please tell me at least one tool to do this? I need to limit
> speed not for all tcp trafik, only samba.

Under linux, a mixture of tc and iptables should do the trick, but it's
not for the faint of heart ;)

--
*Michael Heydon - IT Administrator *
michaelh@jaswin.com.au <mailto:michaelh@jaswin.com.au>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #5 (permalink)  
Old 08-21-2008
Michele Petrazzo - Unipex srl
 
Posts: n/a
Default Re: [Samba] speed limit

Michael Heydon wrote:
>> could you please tell me at least one tool to do this? I need to
>> limit speed not for all tcp trafik, only samba.

> Under linux, a mixture of tc and iptables should do the trick, but
> it's not for the faint of heart ;)
>


Not so much, if you know the thing ;)
We are now OT, but a simple example, I think, don't irritate nobody!

Assuming our network are 192.168.1.X, the client that we want to limit
are .100 at 5mbit and our lan ethernet are eth0. All the clients that we
don't know have to go to 1mbit (all together).

# default root handle
tc qdisc add dev eth0 root handle 1: htb default 1000
# the parent for all the classes, has the max ethernet speed
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit
# our know client
tc class add dev eth0 parent 1:1 classid 1:100 htb rate 1mbit ceil 5mbit
# all the others
tc class add dev eth0 parent 1:1 classid 1:1000 htb rate 1mbit ceil 1mbit

iptables -t mangle -F OUTPUT
iptables -t mangle -A OUTPUT -o eth0 -d 192.168.1.100 -j CLASSIFY
--set-class 1:100
# this it's not need, but clarifies for understand better (since all the
# packets that aren't marked goes to the default into tc
iptables -t mangle -A OUTPUT -o eth0 -j CLASSIFY --set-class 1:1000


P.s. Pay attention that this limit all the traffic to the destination,
not only the samba one! The trickle can be done with something like -p
tcp --sport 445, but I'm not so sure :)

Michele
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0