LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-25-2008, 01:40 PM   #1
jbic
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
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.

I am using \\ip\share when trying to map drives.

Samba is running on debian.

Any ideas?
 
Old 06-25-2008, 01:50 PM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

not much of information, so what does the error said?
 
Old 06-25-2008, 01:56 PM   #3
jbic
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 06-25-2008, 02:10 PM   #4
jbic
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I connected the remote pc to the LAN and mapped \\192.168.1.5\share to the laptop. This worked fine.

I then unplugged the laptop from the LAN and connected to the broadband wifi carrier followed by opening the VPN connection.

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.

As a side note, there are no firewalls enabled on any of these machines.
 
Old 06-25-2008, 02:34 PM   #5
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
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.

Last edited by jschiwal; 06-25-2008 at 02:36 PM.
 
Old 06-25-2008, 02:43 PM   #6
jbic
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Local LAN is 192.168.1.x
WAN is static from ISP

Remote WAN is dynamic from ISP.

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?
 
Old 06-26-2008, 01:48 AM   #7
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

Quote:
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.

HTH.
 
Old 06-26-2008, 06:26 AM   #8
jbic
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rossonieri#1 View Post
hi,



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 also interested in any workarounds as well.
 
Old 06-26-2008, 08:57 PM   #9
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
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.
 
Old 06-27-2008, 05:55 AM   #10
jbic
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I figured it out. The ip scheme was not included in the "hosts allow" on the samba server (slaps hand to forehead).

Thanks for the help/ideas though...
 
  


Reply

Tags
netgear, samba, vpn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP VPN can connect, but cannot ping terrio Linux - Networking 5 02-18-2010 05:39 AM
Cannot connect to Samba Server over VPN on Windows Network trout256 Linux - Networking 11 09-07-2007 09:26 AM
Samba server shares linux disk but windows user cannot connect mcmorj Suse/Novell 2 04-26-2007 03:54 AM
cant see samba shares via vpn kbrec85 Linux - Software 0 10-31-2006 06:29 PM
Vpn & Samba Shares dsimic Linux - Enterprise 5 07-14-2006 01:22 AM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration