[Samba] samba WINS problem on 2 networked LANS using a VPN connection

Tom Skeren tms3 at fsklaw.net
Tue Mar 8 17:37:41 GMT 2005


Your VPN looks problematic.  You probably want a different subnet.

Pml wrote:

> Hello Samba experts,
> Please read all email because i'm desperate!!!!!
> I have problem on joining to LAN-s using Samba. Finally i got a 
> solution to "see" booth workgroups on "Entire Network", but i'm having 
> problem with stations located in LAN2. From any station located in 
> LAN1, I can see LAN2 workgroup and the browse list with stations 
> located in LAN2, but when i'm tring to access and station in it, i get 
> connection refused. I want to mention that acces by IP address is 
> working (eg: \\192.168.1.72)!!! It seems to be a probelm related to 
> browse list and my wins server.
> From any station located in LAN2, i can access by name each networked 
> station in LAN1.
> My networks scheme is printed below:
> (LAN1=192.168.1.48 network and 192.168.1.63 broadcast)
> --LAN1 (192.168.1.48/240)--
>   |
>   |
>   |
>   |
> (192.168.1.49)
> Gateway/RouterA
> (83.84.85.86)
>   |
>   |
> Internet
>   |
>   |
> (83.84.85.87)
> Gateway/RouterB
> (192.168.1.65)
>   |
>   |
>   |
>   |
> --LAN2 (192.168.1.64/224)--
> (LAN2=192.168.1.64 network and 192.168.1.95 broadcast)
> I have bidirectional ping between to/from any station located in my LANS.
> All stations from LAN1 and LAN2 are WindowsXP(SP2) and has firewall 
> disabled.
> Booth Routers (A and B - RHEL 3.0) has samba installed and Router A is 
> used as VPN server (tunel address 10.1.0.1) and RouterB is used as VPN 
> client (tunel address 10.1.0.2).
> Here comes my smb.conf file from RouterA which i want to be used as 
> WINS server by all my windows clients:
> [global]
> workgroup = LAN1
> netbios name = router-LAN1
> server string = Samba
>
> interfaces = 192.168.1.49/28 192.168.1.95/27 127.0.0.1/8 10.1.0.1/24
> bind interfaces only = yes
> remote announce = 192.168.1.49/LAN1 192.168.1.65/LAN2
> remote browse sync = 192.168.1.63 192.168.1.95 #broadcast address LAN1 
> and LAN2
> public = yes
> browseable = yes
> browse list = yes
> auto services = yes
>
> announce as = NT
> os level = 200
> local master = yes
> prefered master = yes
> domain master = yes
> name resolve order = wins
> wins support = yes
> Here comes my smb.conf file from RouterB (WINS client and Local Master 
> Browser for LAN2).
> [global]
> workgroup = LAN2
> netbios name = router-LAN2
> server string = Samba
>
> interfaces = 192.168.1.65/27 192.168.1.63/28 127.0.0.1/8 10.1.0.2/24
> bind interfaces only = yes
> remote announce = 192.168.1.65/LAN2 192.168.1.49/LAN1
> remote browse sync = 192.168.1.63 192.168.1.95 #broadcast address LAN1 
> and LAN2
>
> #politica de browsing si metoda de translatie ip->nume
> announce as = NT
> os level = 200
> local master = yes
> prefered master = yes
> domain master = yes
> name resolve order = wins
> wins server = 192.168.1.49
> Each Windows XP station from LAN2, has configured manually WINS server 
> at 192.168.1.49.
> Also, on each LAN workgroup, i can see and access router-LAN1 and 
> router-LAN2 which is not exactly what i really want (router-LAN1 
> should be present in WORKGROUP LAN1 and router-LAN2 should be present 
> in WORKGROUP LAN2)
> More then that, if i'm tring to access from router-LAN2 a station 
> located in LAN2, i get this error:
> # smbclient -L an13
> Connection to an13 failed
> ...but browsing list is returned ok by router from LAN2:
> # smbclient -L router-LAN2
> Password:
> Domain=[LAN2] OS=[Unix] Server=[Samba 3.0.9-1.3E.1]
>
>       Server               Comment
>       ---------            -------
>       AN12
>       AN13
>       AN14
>       AN15
>       AN16
>       ROUTER-LAN1         Samba
>       ROUTER-LAN2         Samba
>
>       Workgroup            Master
>       ---------            -------
>       LAN1                ROUTER-LAN1
>       LAN2                ROUTER-LAN2
> Please help me...
> Regards,
> Alex
>




More information about the samba mailing list