We help IT Professionals succeed at work.

I need to mount a windows share behind a firewall over vpn to a linux box.

360 Views
Last Modified: 2010-03-18
my original attempt is:

sudo smbmount //<windows-host>>/MountName

This gives me  "(No route to host)"

My network topology is:
I am outside the network on my windows box dialing in over VPN.  I want to develop using local files on my windows box and yet execute the same files on Linux via a mount.

It looks like with my VPN setup there are three ports that are associated with my windows hostname.   One is associated with the vpn network adapter that I  see in dos (Say, IP1).  The next is the one that resolves when I ping the box (IP2).  The third is the ip associated with the return packets. (IP3).

I am using a Red Hat distribution, kernel 2.4.21, and so am trying to use smbfs instead of CIFS.

tantalizingly, when I use IP3, the error changes to "No such share".  I am starting to think that this is a response directly from a firewall box and that my Windows host never sees the mount requests.

If it makes a difference, I am doing all of this in putty sessions on my windows box.
Comment
Watch Question

Commented:
Definitely need to prove connectivity from your Windows box to the Linux server first to rule out network/VPN.

Not sure what you mean by:

    "The third is the ip associated with the return packets. (IP3)."

Full command needed will be something like:

sudo smbmount //>/MountName /path/to/mountpoint username=xxx,password=xxx,uid=1000

Open in new window

Author

Commented:
Apologies.  I am not used to text in this forum and my original command got truncated.

I suspect that the problem here is the VPN communication, rather than the actual SMB command.

In reference to your question.
I see 3 different actual IP addresses.  I see one when I run 'ipconfig /all' from my windows box and look in the section for VPN.  The other two I see when I ping this box by DNS name.  At the top of the command, it says something like "pinging address ip2".  With each packet that comes back, I see "Response from ip3".

It looks like given my current firewall settings, it will be impossible to use the standard technique of ssh'ing from the netshare client to the netshare server and tunnelling over that.  

I just tried to ssh without the VPN in place and couldn't create an interactive session due to blocked port 22.    It seems a pretty good bet that if ssh doesn't work without "-L" it probably won't work with "-L". :)

I SSH the other way all the time, from Windows to Linux, using putty.  Is it possible to get it working that way?
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
This is still in my court.  Sorry for the delay.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.