LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2016, 07:24 AM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Can't connect to a VMWare Fusion VM although I am OpenVPN'd to its host


I have a VMWare Fusion virtual machine running on a computer to which I am connected by OpenVPN in Tunnel mode. (Let's call the three machines: "MyMac," "Host," and "VM.")

VM has two ethernet adapters. (Let's wish for the good ol' days and call 'em "eth0" and "eth1." ) eth0 is shared with the Host, and is used for updates and such. eth1 is defined as "bridged, non-autodetect." I have set to the static address '192.1.2.3,' by virtue of [font=courier]/etc/network/interfaces[/i] entries. I know that it works because Host can ping VM and vice-versa.

• MyMac can ping Host, and can also ping a remote system on the Internet to which Host is allowed to connect. (It can do this, of course, because the VPN configuration file ... on Host, actually ... pushes the necessary route commands to MyMac, routing these IP's through the tunnel.)

• If I telnet or ssh over to Host, then I can ping VM at 192.1.2.3 and vice-versa. I can see that VMWare has defined a route, on Host, to accomplish this.)

• So, I proceeded to add a route to MyMac's OpenSSH configuration, restarted the tunnel, and confirmed that, indeed, 192.1.2.3 is now routed through the tunnel. However, when I attempted to ping 192.1.2.3 from MyMac, I got no response.

... and I really don't know why. Here's my rationale: tell me where I'm going wrong, or if I am, as I would think, at least "tantalizingly close" to success. Here's my notion of how the round trip should be going:
  1. On MyMac, I ping 192.1.2.3.
  2. The routing entry on MyMac routes the traffic through the tunnel.
  3. The traffic emerges from the tunnel, on Host, as having originated from the IP associated with the tunnel.
  4. The route command set up by VMWare should catch the packet and direct it to the VM.
  5. The VM should reply to the ping, as it does to a ping originated from Host.
  6. Static route definitions in the Internet router will catch any replies to the OpenVPN-tunnel address, as it does for any OpenVPN traffic, and successfully route the packet back through the OpenVPN tunnel to MyMac.
So ... where might it be going awry, and what should I do to diagnose the problem? I have "rootly" access to all machines, virtual and otherwise.
 
Old 03-22-2016, 10:31 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I am marking this thread as [SOLVED] because the real issue is that ... "VMWare Fusion not-Pro" is basically a (brain-)dead horse. It doesn't actually have(!) the capabilities you need ... at least, not on OS/X ... to do things like "specify the IP-address of the adapter such that the host operating system will construct a route entry for it.

What VMWare wants you to do, is to pay them more money.

What I did was to use VirtualBox!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect VMWare guest to host? lucmove Linux - Networking 1 09-14-2010 11:32 PM
Routing vs. OpenVPN vs. VMware (Host Only) rwf815 Linux - Networking 1 04-04-2010 06:18 PM
Could not connect windows host to linux guest on vmware. speclinux Linux - Newbie 5 12-31-2009 04:58 AM
VMware with Vista Host - Ubuntu guest can't connect. SimbaSpirit Linux - Software 6 07-28-2008 01:01 AM
cannot connect Host to Guest OS (vmware) ic_torres Linux - Networking 2 10-23-2007 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration