My question seems to be the exact same as this one, but the solution didn’t work for me.
I have one Ubuntu machine acting as a Virtualbox host and OpenVPN server, and several Virtualbox guests inside the host-only network
I can connect to the Ubuntu machine from my macOs host which gets the address
10.8.0.2 with VPN, I can also ping the server’s host-only address
I’d like to access a VM located inside the host-only network at
172.16.0.3, but all my pings have timed out.
What I tried
Pushing the subnet to all clients in OpenVPN config with
push "route 172.16.0.0 255.255.255.0"
Enabling IP forwarding according to the solution in the link.
cat /proc/sys/net/ipv4/ip_forward returns
1. Still doesn’t work.
tcpdumpon both ends show that my ICMP requests from
10.8.0.2are indeed reaching
172.16.0.3has been sending ICMP replies back. But
vboxnet1on the Ubuntu host doesn't show any of the reply packets. Probably dropped somewhere in the host-only network?
What do I need to do to allow connected VPN clients to access virtual machines in the host-only network?
Many thanks in advance. I’ve been banging my head on the wall for the past few days for this.