Can ping samba server over vpn, but can't connect to shares...
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Can ping samba server over vpn, but can't connect to shares...
I am using a Netgear FVS318 VPN/Firewall as a gateway to the internal LAN. I am using the Netgear ProSafe Client software to connect to the LAN.
I have no problems connecting to the VPN. I can ping network resources with no problems. I can telnet and ssh LAN resources from the remote (XP laptop on broadband wifi). I can VNC computers on the LAN as well. I can create a share on an XP box on the LAN and map that to the remote, but I cannot do the same with shares on the samba server.
If I do it through the GUI on the remote laptop...
Right click My Network Places -> Map Network Drive...
Folder: \\192.168.1.5\share
"The mapped network drive could not be created because the following error occurred:
The specified network name is no longer available."
If I do it through the command line...
net use z: \\192.168.1.5\share
I get...
System error 64 has occurred.
The network name is no longer available.
I can ping 192.168.1.5 just fine from the remote. Local hosts on the LAN can map to the share with no problems. It's only over the VPN that I get these errors.
Are these two network segments on separate subnets.
The two error responses you saw are unrelated. I had the second one at work without a vpn. You need to unmap the Y: share before trying to remap it.
The Samba 3 HOWTO & Reference has info about cross subnet browsing in it's browsing section. On solution is to run a wins server on each subnet. Samba can do this with "wins support = yes" in smb.conf. However you can only use one samba wins server per subnet.
Quote:
Originally Posted by Section 10
Use of raw SMB over TCP/IP (No NetBIOS layer) can be done only with
Active Directory domains. Samba is not an Active Directory domain con-
troller: ergo, it is not possible to run Samba as a domain controller and at
the same time not use NetBIOS. Where Samba is used as an Active Direc-
tory domain member server (DMS) it is possible to configure Samba to not
use NetBIOS over TCP/IP. A Samba DMS can integrate fully into an Ac-
tive Directory domain, however, if NetBIOS over TCP/IP is disabled, it is
necessary to manually create appropriate DNS entries for the Samba DMS
because they will not be automatically generated either by Samba, or by
the ADS environment.
Quote:
Originally Posted by Section 10.4
10.4 How Browsing Functions
MS Windows machines register their NetBIOS names (i.e., the machine
name for each service type in operation) on startup. The exact method by
which this name registration takes place is determined by whether or not the
MS Windows client/server has been given a WINS server address, whether
or not LMHOSTS lookup is enabled, whether or not DNS for NetBIOS name
resolution is enabled, and so on.
In the case where there is no WINS server, all name registrations as well as
name lookups are done by UDP broadcast. This isolates name resolution to
the local subnet, unless LMHOSTS is used to list all names and IP addresses.
In such situations, Samba provides a means by which the Samba server
name may be forcibly injected into the browse list of a remote MS Windows
network (using the remote announce parameter).
Quote:
Samba supports a feature that allows forced synchronization of browse lists
across routed networks using the remote browse sync parameter in the smb.
The Samba3-HOWTO.pdf is provided by a samba-doc package or from their website.
This is a remote laptop (i.e. mobile user) so there's no real place for a wins server on the remote.
I'm trying to map the drives via IP and not NetBIOS names. Is there anything else that could be causing this? Or any other info I can provide to help figure this out?
I opened windows explorer and clicked on the mapped drive and got the following error:
"An error occurred while reconnecting Y: to \\192.168.1.5\share
Microsoft Windows Network : the local device name is already in use.
This connection has not been restored."
But I can browse drives that are shared on an XP pro box.
it seems that you are trying to mount something that isnt there anymore - it did happen sometimes - so, release the net drive - and try to create a new net drive - if it still cant get connected then pls check your samba server config (who are allowed to connect to the share, which ip or interface it listen to etc), or try not to use simple file sharing on the xp box since it using different user/pass authentication then linux - just for simplicity.
it seems that you are trying to mount something that isnt there anymore - it did happen sometimes - so, release the net drive - and try to create a new net drive - if it still cant get connected then pls check your samba server config (who are allowed to connect to the share, which ip or interface it listen to etc), or try not to use simple file sharing on the xp box since it using different user/pass authentication then linux - just for simplicity.
HTH.
Unfortunately, it's there and the windows error just doesn't help to diagnose the real problem. I am at work while I am doing this and can access/disconnect/map to the share with no problem on my pc. The laptop next to me is on a cellular broadband and cannot connect to the share.
The share I'm trying to connect to basically allows everybody to access it. To the best of my knowledge it is configured correctly. I inherited it several years ago and have made no changes to it.
I disable simple file sharing on all xp machines in the company.
I'm not getting how your VPN is setup. For VPN you normally use a private subnet address on your machine and use the VPN device's IP for the default gateway. The VPN device has a public IP address on the WAN side and connects to another VPN device at a remote location. Inside the tunnel private address are used, although they are on different subnets to allow routing ( and connecting to local devices on the same subnet ).
Does your modem have a virtual device which should have local IP address? This one should be a private address.
So you could use a static private IP address on the client, while the modem's internet IP address could be dynamic.
Running wins on the Samba server may help with browsing. Also look in the Samba documentation. A work around is to edit the LMHOSTS file. Using your clients & samba's static address in the respective LMHOSTS file may help work around the subnet/browsing problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.