On Mon, Jun 7, 2010 at 9:52 PM, H.S. <hs.sa...@gmail.com> wrote:

> On 07/06/10 03:32 PM, H.S. wrote:
> > On 07/06/10 03:28 PM, H.S. wrote:
> >> On 07/06/10 03:11 PM, Javier Barroso wrote:
> >>> Hi,
> >>> Did you check "hosts allow" parameter from smb.conf in your server ?
> >>>
> >>> I'm not sure if it can works, so please tell us if you get this working
>  :)
> >>>
> >>> Regards,
> >>>
> >>
> >> I didn't have that in smb.conf file at all. I have included the
> >> following lines in it and restarted samba:
> >> hosts allow = 127.0.0.1 192.168.0.0/24 172.16.15.0/24
> >> hosts deny = 0.0.0.0/0
> >>
> >> So no client from the wireless LAN (192.168.5.0/24) is allowed, and
> only
> >> from the wired LAN and VPN are allowed.
> >>
> >> I see a samba log file for the VPN client from which I am trying to
> >> access the shared folder. Here are the last few lines(the log has lines
> >> from earlier today as well which say similar stuff as below):
> >> [2010/06/07 13:58:21,  1] smbd/service.c:1063(make_connection_snum)
> >>   172.16.15.22 (172.16.15.22) connect to service SharedFolder initially
> >> as user nobody (uid=65534, gid=65534) (pid 8948)
> >> [2010/06/07 13:58:46,  1] smbd/service.c:1240(close_cnum)
> >>   172.16.15.22 (172.16.15.22) closed connection to service SharedFolder
> >>
> >>
> >> Does this give any further clues?
>
> A little success. I commented out the following option from smb.conf and
> now I can connect to the share from a VPN client:
> ; interfaces = 127.0.0.0/8 172.16.15.0/24 192.168.5.0/24
>
>
> However, I can not only use "sudo smbmount ..." command to access the
> samba share. The Network browser from Gnome still does not show the
> share while a VPN client. The VPN client is a laptop running Ubuntu Karmic.
>

You may need to have 2 servers to do it (one replicating network map from
master). Read in samba howto:

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2585378

Regards,

Reply via email to