can I point to a virtualbox instance's IP via VPN if virtualbox and osx server are on the same machine?

خرید بک لینک

I have a macmini - which stands behind a LAN with a static ip 10.0.0.2 - that serves as a VPN thanks to the OSX server VPN functionality. It works and I can access my network remotely.

My macmini also hosts a virtualbox linux instance, connected with bridged + promiscuous mode. It has its own static IP (i.e. 10.0.0.4) and it's accessible from the outside thanks to the port forwarding (port 80).

It works like charm from outside, but if I try to VPN-connect and I point my browser to 10.0.0.4, I'm not able connect to it. I can reach 10.0.0.2 (macmini) though, which shows the osx server page.

I tried to traceroute:

Matteos-MacBook-Pro:~ Matteo$ traceroute 10.0.0.2
traceroute to 10.0.0.2 (10.0.0.2), 64 hops max, 52 byte packets
 1  10.0.0.2 (10.0.0.2)  42.415 ms  41.856 ms  42.343 ms

But:

Matteos-MacBook-Pro:~ Matteo$ traceroute 10.0.0.4
traceroute to 10.0.0.4 (10.0.0.4), 64 hops max, 52 byte packets
 1  * * *
 2  * *traceroute: sendto: No route to host
traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *
traceroute: sendto: Host is down
 3 traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *traceroute: sendto: Host is down
traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *traceroute: sendto: Host is down
traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *
 4  * * *
 5  * * *
 6  * * *
traceroute: sendto: No route to host
 7 traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *traceroute: sendto: Host is down
traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *traceroute: sendto: Host is down
traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *
traceroute: sendto: Host is down
 8 traceroute: wrote 10.0.0.4 52 chars, ret=-1
 * * *
 9  * * *
traceroute: sendto: No route to host
10 traceroute: wrote 10.0.0.4 52 chars, ret=-1
 *traceroute: sendto: Host is down

and it keeps hopping!

Since I'm using (almost) the same local address range from remote (10.0.0.0/8 where my macmini is located, 10.0.0.0/24 from where I'm trying to connect from) I set my VPN connection on my remote mac to redirect all the packets over VPN:

enter image description here

plus: enter image description here

my wifi settings: enter image description here

and when I'm connected I get this IP thanks to PPP (it differs from the one I set statically, is that OK?): enter image description here

any hints to fix this? Thanks

- - , .
.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 354 تاريخ: شنبه 26 تير 1395 ساعت: 22:12

صفحه بندی