Networking - NAT plus Host-only
Posted: 1. May 2014, 23:50
I want to create a VM that has NAT access to the internet, and is also accessible via SSH from the host PC. The appropriate solution seems to be to have 2 network adapters, a NAT adapter and a host-only one. I can't use bridged because my host PC is on a corporate network which won't allow nonstandard build systems to register on the LAN.
My problem is that my host (a Windows 7 laptop) has a complex mix of networking: (1) a wired connection to the corporate network, (2) a wireless connection to the internet via my broadband provider, and (3) a VPN over my broadband to the work network. Any one of these can be running at any given time. My problem is that while the host-only adapter is accessible when the wired connection is up, it is not accessible when the VPN is running (I haven't checked the broadband yet). It appears that there is no route to the host-only subnet - the only route is to the gateway itself.
I know very little about Windows networking, and just to make things worse I have no idea if the corporate firewall software may be involved. So I don't know if the lack of a route is to be expected or some sort of unusual issue. But can anyone help me to set up a VM that will be accessible as described (NAT access to the internet, SSH connectivity from the host) whatever network connection the host is using? I know I can RDP to the guest console, but I specifically need SSH for the tools I'm using.
Thanks,
Paul
PS I'm not able to get much help from corporate IT - the setup I'm trying to create isn't prohibited, but it's definitely unsupported
My problem is that my host (a Windows 7 laptop) has a complex mix of networking: (1) a wired connection to the corporate network, (2) a wireless connection to the internet via my broadband provider, and (3) a VPN over my broadband to the work network. Any one of these can be running at any given time. My problem is that while the host-only adapter is accessible when the wired connection is up, it is not accessible when the VPN is running (I haven't checked the broadband yet). It appears that there is no route to the host-only subnet - the only route is to the gateway itself.
I know very little about Windows networking, and just to make things worse I have no idea if the corporate firewall software may be involved. So I don't know if the lack of a route is to be expected or some sort of unusual issue. But can anyone help me to set up a VM that will be accessible as described (NAT access to the internet, SSH connectivity from the host) whatever network connection the host is using? I know I can RDP to the guest console, but I specifically need SSH for the tools I'm using.
Thanks,
Paul
PS I'm not able to get much help from corporate IT - the setup I'm trying to create isn't prohibited, but it's definitely unsupported