I have an MBP running Mavericks, with VB 5.0.0 and a Ubuntu 14.04 guest. I want to run Boxpn VPN from the guest. The host is connected to my network via wifi - not Apples, but a D-Link 11n usb stick.
I've got the openvpn and pptp instructions for Ubuntu, but nothing works unless I have the guest set up for ethernet. Bridging doesn't work or rather I have not yet succeeded it getting it working.
Any help much appreciated or merely a link to a solution.
Thanks in advance.
Cannot get vpn to work on buntu guest on Mac host
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Cannot get vpn to work on buntu guest on Mac host
LiYa wrote:The host is connected to my network via wifi
Bridged and wireless don't always play nice. Bridged networking is outside the WLAN specification. It may or may not work. Some combinations of Routers/Access Points, WLAN cards and drivers work, some don't. See: Bridging & Wifi - Supported hardware. For example, it works fine in my home, but not in my office. Same laptop, same VM. Try to see if it works either with wired bridged or with NAT.LiYa wrote:nothing works unless I have the guest set up for ethernet. Bridging doesn't work
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Cannot get vpn to work on buntu guest on Mac host
Thanks, Socratis. I'll take a look at your suggestions.
A few minutes later. I'm not sure I fully understand bridging. Is it that the host bridges from ethernet (to the guest) to wifi or another ethernet (for the internet)? If so, how do I set up the guest and host? Presumably the ethernet connection is set up as normal with the host being 10.0.0.2 and the guest being 10.0.0.15. But how does one route traffic from the ethernet's 10.0.0.2 to the wifi's 192.168.x.y? And which dns server should one use? Ethernet to ethernet is not an option on a laptop.
Still later:
Here is my routing table with NAT:
Now it seems to me I have two addresses for default gateway, 10.0.2.2 which is the host, and 10.10.20.65 which presumably is the entry to the tunnel. And the other end of the tunnel, 65.215.230.82, is reached via 10.0.2.2. I would have thought it ought to be reached via 10.10.20.65 and the default via 10.0.2.2 should be removed.
Now, ifconfig -a shows that my eth0 if has the ip 10.0.2.15 and my tun0 if has the address 10.10.20.69 so now I'm confused about where 10.10.20.64 and 65 are. I would have expected that my default route when the vpn is up should look like this:
0.0.0.0 10.10.20.69 128.0.0.0 UG 0 0 0 tun0
and 10.0.2.15 should only go to the host network, which in this case means to the host.
I've just checked the host and there are no entries for the tunnel shown by ifconfig -a
So now I'm very confused. Can some kind soul please tell me where my mistakes lie?
A few minutes later. I'm not sure I fully understand bridging. Is it that the host bridges from ethernet (to the guest) to wifi or another ethernet (for the internet)? If so, how do I set up the guest and host? Presumably the ethernet connection is set up as normal with the host being 10.0.0.2 and the guest being 10.0.0.15. But how does one route traffic from the ethernet's 10.0.0.2 to the wifi's 192.168.x.y? And which dns server should one use? Ethernet to ethernet is not an option on a laptop.
Still later:
Here is my routing table with NAT:
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.10.20.65 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.10.20.64 0.0.0.0 255.255.255.192 U 0 0 0 tun0
67.215.230.82 10.0.2.2 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 10.10.20.65 128.0.0.0 UG 0 0 0 tun0
Now, ifconfig -a shows that my eth0 if has the ip 10.0.2.15 and my tun0 if has the address 10.10.20.69 so now I'm confused about where 10.10.20.64 and 65 are. I would have expected that my default route when the vpn is up should look like this:
0.0.0.0 10.10.20.69 128.0.0.0 UG 0 0 0 tun0
and 10.0.2.15 should only go to the host network, which in this case means to the host.
I've just checked the host and there are no entries for the tunnel shown by ifconfig -a
So now I'm very confused. Can some kind soul please tell me where my mistakes lie?
Re: Cannot get vpn to work on buntu guest on Mac host
Bump!
Nobody who can give me a lead?
Nobody who can give me a lead?