By default the Whonix Gateway VM (running in VirtualBox-5.2.18) uses the Virtual Box NAT type network interface for the external (TOR) connection. This works for me if I do NOT have the host system using a VPN. However, I would like to use the VirtualBox “Host-Only” type network interface as it will forward the Whonix Gateway TOR connection over an existing VPN on the Virtual Box Host. I have tested both a Windows and Linux VM, on the same virtual network (192.168.a.b) as my Whonix setup, and both test VMs use the VirtualBox Host-Only network interface. All requests from the test VMs to routable IP addresses do connect to their destination. (I have forwarding turned on in iptables.)
The issue is that if I change the VirtualBox network interface type to host-only (vboxnet0 – the same that I tested with) TOR never connects from the Whonix gateway server. I have also tried to set up a simple proxy server on the Linux host (tinyproxy) and told Whonix gateway to use the proxy. This also fails. (The proxy works when tested with other VMs.)
How do I set the Whonix gateway server to successfully use VirtualBox’s host-only network interface for the gateway’s TOR connection?