* Re: Re[2]: [LARTC] traffic shaping
@ 2002-01-31 8:25 Antonis Lazaridis
2002-01-31 8:44 ` Martin Devera
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Antonis Lazaridis @ 2002-01-31 8:25 UTC (permalink / raw)
To: lartc
Hi...
>Using two IP aliases you could...
>so folder A is shared on the alias 192.168.0.1 and folder B on
>192.168.0.2, then limit the traffic by IP.
You made it sound very simple, so i thought i can do it.
But my beginner-ness didn't allow me...
I have set the different IP aliases, but i don't know how i can share
folders on different aliases.
I suppose this has to be done in smb.conf, right?
I have read all of the smb.conf man, but couldn't find anything.
How can i share different folders on different aliases?
Thanks,
antonis.
PS: My smb.conf file:
[global]
netbios name = smbSrv
workgroup = myGroup
security = user
encrypt passwords = yes
[public]
path = /tmp
read only = no
[video]
path = /d/video
read only = no
guest ok = true
[d_drive]
path = /d
read only = no
guest ok = true
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Re[2]: [LARTC] traffic shaping
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
@ 2002-01-31 8:44 ` Martin Devera
2002-01-31 9:07 ` Stef Coene
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Martin Devera @ 2002-01-31 8:44 UTC (permalink / raw)
To: lartc
I have not reply to this question just general thought. The
probably best would be to hack samba to add new per folder
option "TOS". Samba then would use SO_PRIORITY to dynamicaly
mark TCP's packets with changing priority - it can be then
utilized properly by qos module.
Just idea ...
devik
On Thu, 31 Jan 2002, Antonis Lazaridis wrote:
> Hi...
>
> >Using two IP aliases you could...
> >so folder A is shared on the alias 192.168.0.1 and folder B on
> >192.168.0.2, then limit the traffic by IP.
>
> You made it sound very simple, so i thought i can do it.
> But my beginner-ness didn't allow me...
> I have set the different IP aliases, but i don't know how i can share
> folders on different aliases.
>
> I suppose this has to be done in smb.conf, right?
> I have read all of the smb.conf man, but couldn't find anything.
>
> How can i share different folders on different aliases?
> Thanks,
> antonis.
>
> PS: My smb.conf file:
>
> [global]
> netbios name = smbSrv
> workgroup = myGroup
> security = user
> encrypt passwords = yes
>
> [public]
> path = /tmp
> read only = no
>
> [video]
> path = /d/video
> read only = no
> guest ok = true
>
> [d_drive]
> path = /d
> read only = no
> guest ok = true
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Re[2]: [LARTC] traffic shaping
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
2002-01-31 8:44 ` Martin Devera
@ 2002-01-31 9:07 ` Stef Coene
2002-02-01 1:45 ` Antonis Lazaridis
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Stef Coene @ 2002-01-31 9:07 UTC (permalink / raw)
To: lartc
On Thursday 31 January 2002 09:25, Antonis Lazaridis wrote:
> Hi...
>
> >Using two IP aliases you could...
> >so folder A is shared on the alias 192.168.0.1 and folder B on
> >192.168.0.2, then limit the traffic by IP.
>
> You made it sound very simple, so i thought i can do it.
> But my beginner-ness didn't allow me...
> I have set the different IP aliases, but i don't know how i can share
> folders on different aliases.
>
> I suppose this has to be done in smb.conf, right?
> I have read all of the smb.conf man, but couldn't find anything.
From the smb.conf man ;-)
(http://samba.nip.nl/samba/docs/man/smb.conf.5.html#SOCKETADDRESS)
-----------------------------
socket address (G)
This option allows you to control what address Samba will listen for
connections on. This is used to support multiple virtual interfaces on the
one server, each with a different configuration.
By default Samba will accept connections on any address.
Example: socket address = 192.168.2.20
-----------------------------
Stef
--
stef.coene@docum.org
More QOS info : http://www.docum.org/
Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Re[2]: [LARTC] traffic shaping
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
2002-01-31 8:44 ` Martin Devera
2002-01-31 9:07 ` Stef Coene
@ 2002-02-01 1:45 ` Antonis Lazaridis
2002-02-01 9:16 ` Martin Devera
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Antonis Lazaridis @ 2002-02-01 1:45 UTC (permalink / raw)
To: lartc
Sorry Stef,
but i don't understand...
'socket address' is a global parameter, right?
If i use
socket address = 192.1.1.2
then samba shares everything on 192.1.1.2
How can i use it for shareing different folders on different IPs?
antonis.
>From: Stef Coene <stef.coene@docum.org>
>To: "Antonis Lazaridis" <antonis_san@hotmail.com>, lotto@impulse.net.au,
> lartc@mailman.ds9a.nl
>Subject: Re: Re[2]: [LARTC] traffic shaping
>Date: Thu, 31 Jan 2002 10:07:53 +0100
>
>On Thursday 31 January 2002 09:25, Antonis Lazaridis wrote:
> > Hi...
> >
> > >Using two IP aliases you could...
> > >so folder A is shared on the alias 192.168.0.1 and folder B on
> > >192.168.0.2, then limit the traffic by IP.
> >
> > You made it sound very simple, so i thought i can do it.
> > But my beginner-ness didn't allow me...
> > I have set the different IP aliases, but i don't know how i can share
> > folders on different aliases.
> >
> > I suppose this has to be done in smb.conf, right?
> > I have read all of the smb.conf man, but couldn't find anything.
From the smb.conf man ;-)
>(http://samba.nip.nl/samba/docs/man/smb.conf.5.html#SOCKETADDRESS)
>
>-----------------------------
>socket address (G)
>
>
>This option allows you to control what address Samba will listen for
>connections on. This is used to support multiple virtual interfaces on the
>one server, each with a different configuration.
>
>By default Samba will accept connections on any address.
>
>Example: socket address = 192.168.2.20
>-----------------------------
>
>Stef
>
>--
>
>stef.coene@docum.org
> More QOS info : http://www.docum.org/
> Title : "Using Linux as bandwidth manager"
>
>
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Re[2]: [LARTC] traffic shaping
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
` (2 preceding siblings ...)
2002-02-01 1:45 ` Antonis Lazaridis
@ 2002-02-01 9:16 ` Martin Devera
2002-02-01 9:57 ` Antonis Lazaridis
2002-02-01 10:05 ` Martin Devera
5 siblings, 0 replies; 8+ messages in thread
From: Martin Devera @ 2002-02-01 9:16 UTC (permalink / raw)
To: lartc
> 'socket address' is a global parameter, right?
>
> If i use
> socket address = 192.1.1.2
>
> then samba shares everything on 192.1.1.2
>
> How can i use it for shareing different folders on different IPs?
probably run more smbd on the server each with different
config file.
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Re[2]: [LARTC] traffic shaping
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
` (3 preceding siblings ...)
2002-02-01 9:16 ` Martin Devera
@ 2002-02-01 9:57 ` Antonis Lazaridis
2002-02-01 10:05 ` Martin Devera
5 siblings, 0 replies; 8+ messages in thread
From: Antonis Lazaridis @ 2002-02-01 9:57 UTC (permalink / raw)
To: lartc
>probably run more smbd on the server each with different
>config file.
>devik
Yes,
I tried this too, but there is a "lock" on smbd.pid.
I am have been searching the internet for 1 full day, to find out how i can
run multiple smbd deamons, but didn't find anything!
Is there nothing on this, or don't i know where to search?
antonis.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Re[2]: [LARTC] traffic shaping
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
` (4 preceding siblings ...)
2002-02-01 9:57 ` Antonis Lazaridis
@ 2002-02-01 10:05 ` Martin Devera
5 siblings, 0 replies; 8+ messages in thread
From: Martin Devera @ 2002-02-01 10:05 UTC (permalink / raw)
To: lartc
> >probably run more smbd on the server each with different
> >config file.
> >devik
> Yes,
> I tried this too, but there is a "lock" on smbd.pid.
Is not there some option to select another lock file ? Ask
ok samba list they are pretty responsible.
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] traffic shaping
@ 2001-01-04 12:22 Wouter
2002-01-27 1:21 ` Re[2]: " Will Lotto
0 siblings, 1 reply; 8+ messages in thread
From: Wouter @ 2001-01-04 12:22 UTC (permalink / raw)
To: lartc
<PRE>Hello,
I'm trying to limit all outgoing traffic by means of TC. With six students
we are connected through the server (Debian 2.2 kernel 2.2.18) with a
cablemodem. When one person uploads (usually with full bandwidth available
15KB/s) none of the others can make use of the internet because no requests
for information can be send.
So, i want to limit the maximum individual upload to 5KB/s so this doesnt
disturb others useing the internet.
Situation:
Server: 192.168.1.1
Clients: 192.168.1.2 - 192.168.1.7
eth0: LAN
eth1: Cablemodem
Below is what I came up with myself but it doesnt seem to work. Also when do
i activate this rules? pre- of post configuring interfaces?
Thnx,
Wouter Smit
------------------------------------------------
#!/bin/sh
TC="/sbin/tc"
IF="eth1"
echo Configure queueing discipline
$TC qdisc add dev $IF root handle 10: cbq bandwidth 120Kbit avpkt 1000
echo Configure root class
$TC class add dev $IF parent 10:0 classid 10:1 cbq bandwidth 120Kbit rate \
120Kbit allot 1514 weight 12Kbit prio 8 maxburst 20 avpkt 1000
echo Configure class divisions
$TC class add dev $IF parent 10:1 classid 10:100 cbq bandwidth 120Kbit rate
\
40Kbit allot 1514 weight 4Kbit prio 5 maxburst 20 avpkt 1000 bounded
echo Configure queue management
$TC qdisc add dev $IF parent 10:100 sfq perturb 15 quantum 1514
echo Configure which packets belong to which class
$TC filter add dev $IF parent 10:0 protocol ip prio 25 u32 match ip src \
192.168.1.0/24 flowid 10:100
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: [LARTC] traffic shaping
2001-01-04 12:22 Wouter
@ 2002-01-27 1:21 ` Will Lotto
0 siblings, 0 replies; 8+ messages in thread
From: Will Lotto @ 2002-01-27 1:21 UTC (permalink / raw)
To: lartc
Using two IP aliases you could...
so folder A is shared on the alias 192.168.0.1 and folder B on
192.168.0.2, then limit the traffic by IP.
Out of the box, I don't believe you'll have much success. There's
(almost) no way of telling which samba traffic is for which file.
> hehe, hey people are you joking or what ?
> well it would be possible witch patched samba :)
> On Fri, 25 Jan 2002, Antonis Lazaridis wrote:
>> Hello again,
>>
>> i have another question.
>>
>> Is there any way to shape traffic according to file types or directories?
>> Something like:
>> access to files in folderA can have 10Mbps,
>> access to files in forderB can have 5Mbps.
>>
>> Possible?
>>
>> Thanks,
>> antonis.
>>
>> _________________________________________________________________
>> Join the world’s largest e-mail service with MSN Hotmail.
>> http://www.hotmail.com
>>
>> _______________________________________________
>> LARTC mailing list / LARTC@mailman.ds9a.nl
>> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
>>
>>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
---
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-02-01 10:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-31 8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
2002-01-31 8:44 ` Martin Devera
2002-01-31 9:07 ` Stef Coene
2002-02-01 1:45 ` Antonis Lazaridis
2002-02-01 9:16 ` Martin Devera
2002-02-01 9:57 ` Antonis Lazaridis
2002-02-01 10:05 ` Martin Devera
-- strict thread matches above, loose matches on Subject: below --
2001-01-04 12:22 Wouter
2002-01-27 1:21 ` Re[2]: " Will Lotto
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.