[Samba] WINS doesn't work on some ip addresses in multihome setup

Sebastian Suchanek samba at suchanek.de
Thu Jun 28 00:19:52 MDT 2012


Am 27.06.2012 18:22, schrieb Harry Jede:
> On 18:06:25 wrote Sebastian Suchanek:
 >
>> I guess that the problem has something to do with the "not adding
>> non-broadcast interface tun0" debug message (tun0 is created by an
>> OpenVPN daemon and set to 10.8.0.0/24), but how could this be
>> avoided?
 >
> check with
> netstat -uan |egrep '137|138'
>
> where nmbd is listening.

tux:~# netstat -uan |egrep '137|138'
udp        0      0 a.b.c.255:137           0.0.0.0:*
udp        0      0 a.b.c.233:137           0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
udp        0      0 a.b.c.255:138           0.0.0.0:*
udp        0      0 a.b.c.233:138           0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
tux:~#

> If nmbd is not attached to your tun0 interface,
> you must turn of "interfaces" in smbd.conf,

Turning the bind-to-interfaces option off is my current work-around, but 
I'd rather have another solution.

> or use another vpn solution which supports tap interfaces.

I would have preferred bridging instead of routing in the first place 
(and OpenVPN also supports this), but I have to plan for more VPN 
clients dialling in then I have free IP addresses left in the subnet in 
question.


Best regards,

Sebastian




More information about the samba mailing list