How to give a VM a local IP on a remote subnet through its host's VPN connection
Posted: 7. Jun 2016, 01:37
It sounds so simple, but this is killing me.
We have a physical proprietary Linux server with a private IP 192.168.1.5 using rsync in its own way to back up its system and data to a virtual server of the same kind with IP 192.168.1.10. This VM resides on an Ubuntu Mate PC and has a bridged Ethernet interface for its static IP. Both servers are essentially "appliances" because we cannot change much in their configs. The arrangement works fine for backup, failover, etc. on the office LAN.
PROBLEM: We want to move the PC with the backup server VM offsite to any of various employee's homes (and it may move around now and then).
The two servers want to see each other at their respective "local" static IPs, so I think I will need to set up a LAN-to-LAN bridged VPN (IPSec/SSL/etc. with either Mate's Network Manager, StrongSWAN, OpenVPN, etc.) from the Ubuntu host PC to the Netgear FVS336Gv3 router at the office, using NAT-traversal to get through the residential cable firewall/router between them. A simple Host-to-LAN "road warrior" VPN seems to require tunneling through a routed connection, cannot pass traffic from another host (the VM) through it, and creates a virtual network interface that obviously cannot support a VBox bridged interface at all.
QUESTION: The question for this group is what sort of network regime do I need to set up in VBox so that both servers will think the server in the VM never left the local office network?
I am not sure what type of network interface will be created on the host Ubuntu PC for the VPN endpoint, but I am fairly certain it will be something virtual. Regardless, I must present the VM's NIC with full access to the 192.168.1.0/24 remote LAN, because we cannot install VPN software on the server in the VM. I need to know what kind of virtual networking magic needs to be done in VBox to make this happen.
The deeper I get into this, the more I wonder if such a simple concept might still be beyond the capability of the platforms I have chosen to use.
Let's hope there is a simple solution to this (at least for the VBox part of it).
Thanks!
We have a physical proprietary Linux server with a private IP 192.168.1.5 using rsync in its own way to back up its system and data to a virtual server of the same kind with IP 192.168.1.10. This VM resides on an Ubuntu Mate PC and has a bridged Ethernet interface for its static IP. Both servers are essentially "appliances" because we cannot change much in their configs. The arrangement works fine for backup, failover, etc. on the office LAN.
PROBLEM: We want to move the PC with the backup server VM offsite to any of various employee's homes (and it may move around now and then).
The two servers want to see each other at their respective "local" static IPs, so I think I will need to set up a LAN-to-LAN bridged VPN (IPSec/SSL/etc. with either Mate's Network Manager, StrongSWAN, OpenVPN, etc.) from the Ubuntu host PC to the Netgear FVS336Gv3 router at the office, using NAT-traversal to get through the residential cable firewall/router between them. A simple Host-to-LAN "road warrior" VPN seems to require tunneling through a routed connection, cannot pass traffic from another host (the VM) through it, and creates a virtual network interface that obviously cannot support a VBox bridged interface at all.
QUESTION: The question for this group is what sort of network regime do I need to set up in VBox so that both servers will think the server in the VM never left the local office network?
I am not sure what type of network interface will be created on the host Ubuntu PC for the VPN endpoint, but I am fairly certain it will be something virtual. Regardless, I must present the VM's NIC with full access to the 192.168.1.0/24 remote LAN, because we cannot install VPN software on the server in the VM. I need to know what kind of virtual networking magic needs to be done in VBox to make this happen.
The deeper I get into this, the more I wonder if such a simple concept might still be beyond the capability of the platforms I have chosen to use.
Let's hope there is a simple solution to this (at least for the VBox part of it).
Thanks!