Workgroup that spans more than one subnet in Samba

From: Dani Camps (danicamps81_at_gmail.com)
Date: 03/09/05


Date: 9 Mar 2005 03:35:10 -0800

I want a workgroup that spands two IP subnets. My
configuration is:

                     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
------------------------------------------

So the Gateway machine is the local master browser, of
both subnets ? (I am not sure) and is the domain
master browser and the WINS server. Then all the
clients in both subnets are configured to use the WINS
server in either eth0 or eth1. This configuration
doesn't work at all and I don't understand why ...

Well looking at the post in the mailing list I see
that the most people what have is a local master
browser in each subnet, and then both LMB
syncrohronize each other using the "remote browse
sync" instruction. I can not do this since I don't
have a machines with samba in eeach subnet I only have
the gateway. Then my question is should I run in the
gateway two instances of samba each one listening on
one interface, being the LMB of its subnet and with
the "remote browse sync" option in each one, and
having one of the two instances act as a domain name
server and a WINS server?

If this is the case how can I run two instances of
Samba in the same machine ? The only thing I need is
another configuration file and passed it to samba when
I start it ? In each configuration file I would have:
--------------------------------
interfaces=192.168.0.x
bind interfaces only=yes
--------------------------------

Is this correct ? Any idea is apreciated I have
already been a quite long time dealing with this
question...

Thanks



Relevant Pages

  • Re: Cannot setup ICS in Win2000
    ... > * I have followed every Guide that I can find to try and make a> internet connection from one computer to another. ... > - Intel PIII-550mhz ... > * The Ipconfig in CMD Shows for the Intel PIII-550> Windows 2000 IP Configuration ... Primarily the> Gateway is failed, But I have found no discriptions on how to use the> gateway. ...
    (microsoft.public.win2000.networking)
  • RE: ISA 2004 Firewall Client and ActiveSync 4.2
    ... though I was connected in a Wireless Lan I changed my configuration. ... that killing my default gateway is not the way ... gateway and the appropriate DNS server entries. ... server internal IP then your client works as a secureNAT client and you're ...
    (microsoft.public.isa.clients)
  • Re: WRT54G (v4) Client mode
    ... There are specific ranges you ... Some routing devices act to specifically handle these subnets differently. ... configuration options without really pinning down what does or doesn't work. ... Up the mast you'll want a device configured to act as a 'client' of a shore ...
    (alt.internet.wireless)
  • Re: [SLE] Wireless, DHCP, Firewall Issues [SOLVED, sort of ...]
    ... I setup my laptop with SCP. ... It "remembers" changes to your configuration and switches back and forth ... wireless with DHCP accept any... ... I also blanked the gateway information. ...
    (SuSE)
  • Re: connecting a device that supports IP address, but not subnet mask or gateway to a network with m
    ... default gateway. ... Cisco network without an option to configure a subnet mask and default ... tested on) under interface configuration mode. ...
    (comp.dcom.sys.cisco)