Dani Camps
2005-Mar-10 11:33 UTC
[Samba] Do I need two instances of Samba on the same machine (3rd request) ?
I have two subnets S1 and S2 and only one machine running samba, but this machine is connected to both subnets, ahs one interface in each subnet and is acting as a router. I want to have a workgroup that spans the two subnets, so any machine in subnet S1 should see all the machines regardless of their subnet when doing browsing. I know that to do this I need: -One LMB in each subnet using Samba. -One of the LMB of the two subnets should be a DMB and at the same time a WINS server. -I configure all the clients (Windows and Linux) to use WINS. Since I only have one machine connected to both subnets running samba, I think I need to run two instances of samba (smbd and nmbd) in that machine each one binded to one interface and using different smb.conf files. Is that the only solution ? Thanks __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
spu@corman.be
2005-Mar-10 11:37 UTC
RE [Samba] Do I need two instances of Samba on the same machine (3rd request) ?
Maybe a normal and a chrooted samba can resolve your problem ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467 Dani Camps <danicamps81@yaho o.com> A Envoy? par : Samba Mailing List samba-bounces+ste <samba@lists.samba.org> phane.purnelle=co cc rman.be@lists.sam ba.org Objet [Samba] Do I need two instances of Samba on the same machine (3rd 10/03/2005 12:33 request) ? I have two subnets S1 and S2 and only one machine running samba, but this machine is connected to both subnets, ahs one interface in each subnet and is acting as a router. I want to have a workgroup that spans the two subnets, so any machine in subnet S1 should see all the machines regardless of their subnet when doing browsing. I know that to do this I need: -One LMB in each subnet using Samba. -One of the LMB of the two subnets should be a DMB and at the same time a WINS server. -I configure all the clients (Windows and Linux) to use WINS. Since I only have one machine connected to both subnets running samba, I think I need to run two instances of samba (smbd and nmbd) in that machine each one binded to one interface and using different smb.conf files. Is that the only solution ? Thanks __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Adam Tauno Williams
2005-Mar-10 11:38 UTC
[Samba] Do I need two instances of Samba on the same machine (3rd request) ?
> Since I only have one machine connected to both > subnets running samba, I think I need to run two > instances of samba (smbd and nmbd) in that machine > each one binded to one interface and using different > smb.conf files. Is that the only solution ?Why? You said these will all be in the same workgroup, thus you want them to see the same resources. Run one Samba instance as the WINS server and disable browsing on the clients (easy if the Samba server is also the DHCP server). -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20050310/b4f876b9/attachment.bin
Dani Camps
2005-Mar-10 11:43 UTC
[Samba] Do I need two instances of Samba on the same machine (3rd request) ?
> Run one Samba instance as the WINS server and > disable browsing on the > clients (easy if the Samba server is also the DHCP > server).The machine that is in the two subnets is a Samba server (one instance) a WINS server and a DHCP server, but is not working actually only the clients in one subnet see each other, the clients in the other subnet don't see anything. And I have checked that the instance of Samba is listening on both subnets. What do u mean with disable the browsing in the clients ? I want the clients to be able to browse the workgroup --- Adam Tauno Williams <awilliam@whitemice.org> wrote:> > Since I only have one machine connected to both > > subnets running samba, I think I need to run two > > instances of samba (smbd and nmbd) in that machine > > each one binded to one interface and using > different > > smb.conf files. Is that the only solution ? > > Why? You said these will all be in the same > workgroup, thus you want > them to see the same resources. > > Run one Samba instance as the WINS server and > disable browsing on the > clients (easy if the Samba server is also the DHCP > server). >__________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs
Dani Camps
2005-Mar-10 12:23 UTC
[Samba] Do I need two instances of Samba on the same machine (3rd request) ?
I already have all the clients in both subnets configured to use WINS and configured to be a p-node. These are my lines in the DHCP server: ----------------------------------------------------- option netbios-name-servers 192.168.0.1; option netbios-node-type 2; ----------------------------------------------------- I rewrite my configuration to check whether I have some error: INTERNET | __eth1__ |---------eth0|_______|eth2---------| 192.168.0.0/24 Gateway 192.168.1.0/24 <------------------------------------> WORKGROUP eth0:192.168.0.1 and gateway of the 192.168.0.0/24 eth2:192.168.1.1 and gateway of the 192.168.1.0/24 eth1:public IP, doing NAT of the internal subnets The Gateway is a Fedora Core 3 box where I have Samba installed. I have Samba configured to be a WINS server in that machine. What I have now and it doesn't work is the following: In the gateway machine I have one instance of Samba running with this configuration: ----------------------------------------------------- hosts allow=127. 192.168.0. 192.168.1. ... socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ... interfaces=192.168.0.1/24 192.168.1.1/24 127.0.0.1/8 bind interfaces only=yes ... #To be the DMB domain master = yes local master = yes os level = 255 preferred master = yes ... #To be the WINS server name resolve order = wins lmhosts bcast wins support = yes dns proxy = no ------------------------------------------ I know I need to make what I want work: 1-One LMB in each subnet 2-One DMB 3-One WINS server and all the clients using WINS This is why I thought in having two Samba servers in the gateway machine one binded to each interface (eth0,eth2), and one of them being the DMB and WINS. Because it seems that with only one Samba instance in that machine it doesn't work. What happens now is the following, the SMB networking within the 192.168.0.0 network works perfect, but they only see themselves. And the machines in the 192.168.1.0 can not even open the network neigbourhood because there is an error (error 53 doing net view). But IP routing works between the two subnets, I have checked the ping between machines in the two subnets, and I have no Firewall rule filetring traffic between the two subnets. So i don't have any idea about what could be failing. Thanks ! --- Adam Tauno Williams <awilliam@whitemice.org> wrote:> > > Run one Samba instance as the WINS server and > > > disable browsing on the > > > clients (easy if the Samba server is also the > DHCP > > > server). > > The machine that is in the two subnets is a Samba > > server (one instance) a WINS server and a DHCP > server, > > but is not working actually only the clients in > one > > subnet see each other, the clients in the other > subnet > > don't see anything. And I have checked that the > > instance of Samba is listening on both subnets. > > What do u mean with disable the browsing in the > > clients ? I want the clients to be able to browse > the > > workgroup > > Browsing and the ability-to-browse (network > neighborhood) are two > different things. Change the NetBIOS node type of > the workstations so > they only use WINS and make sure they have the WINS > server value in > their network configuration (either statically or > acquired by DHCP). If > you don't know what the NetBIOS Node Type is then > you need to read up on > it, or you'll never get this to work. > > If this box is supposed to be the router between the > two subnets make > sure basic IP functionality is up and running first; > a box on one subnet > can ping a box on the other subnet. >__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/