[Samba] Nmbd is using the wrong ip address as source
theo at macsys.eu
Sat Oct 4 06:13:46 GMT 2008
> -----Original Message-----
> From: samba-bounces+theo=macsys.eu at lists.samba.org
> [mailto:samba-bounces+theo=macsys.eu at lists.samba.org] On
> Behalf Of samba at piven.org
> Sent: Saturday, October 04, 2008 4:41 AM
> To: samba at lists.samba.org
> Subject: Re: [Samba] Nmbd is using the wrong ip address as source
> Teodor Iacob wrote:
> > Hello,
> > I have a linux box with the following S/W versions:
> > CentOS release 5.2 (Final)
> > Linux ns.hostname.ro 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24
> 19:32:05 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
> > Version 3.0.28-1.el5_2.1
> > My server has 2 IP interfaces, eth0: with the public ip
> address and br0: for the private subnet.
> > Br0 being a bridge ip interface between eth1 and tap0 ( for
> openvpn ).
> > Now my problem is that the nmbd is doing the netbios
> broadcasts using the eth0 ip address instead
> > of the br0 one. I'm only interested in enabling samba on
> the local network (br0). I have checked
> > this by using tcpdump on another linux machine in the
> network and saw the broadcasts with the source
> > address the eth0 ip. Nmbd claims to win the master browsing
> election, but in reality the windows machines
> > ignore the election packets and another machine becomes
> master and the browsing list is messed up..
> > The smbd works just fine, connecting to the shares manually
> works correctly.
> > How can I make nmbd to use the correct ip address? ( btw, I
> removed the bridge config just for testing
> > and only enabled ip on the eth1 and the same problem.. ). I
> saw that in the previous version there was
> > a parameter "-I" to force the source address..
> > For reference this is my smb.conf:
> > [global]
> > workgroup = HOSTNAME
> > netbios name = HNS
> > interfaces = 10.10.10.1 127.0.0.1
> ... why not just say "interfaces = br0" so that it binds to
> your private
> interface (which I presume owns 10.10.10.1)? You don't need to have
> Samba listen on the loopback address if you can talk to it on another
> local address.
I mentioned also br0 in my quest of trying all possibilities I could think of.. No change.
But bind is only for listening, my problem is when nmbd it sends packets by itself to
make the election. I told you smbd works fine and I can see from netstat -an at the LISTEN
part that it was only bound to the 10.10.10.1:139 and 10.10.10.1:445
> > hosts allow = 127.0.0., 10.10.10.
> > bind interfaces only = yes
> > remote announce = 10.10.10.255/HOSTNAME
> > socket address = 10.10.10.1
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
__________ Information from ESET NOD32 Antivirus, version of virus signature database 3494 (20081003) __________
The message was checked by ESET NOD32 Antivirus.
More information about the samba