I’m having 2 VM on virtualbox. I have a vpn client which is not available on linux, want to work on linux but am screwed with the vpn client which is only supported on windows.
On my current resolution which is really not ideal, I’m having /etc/host redirections for some of the hosts and ssh tunnels vm1->vm2 to make some services work.
Have 2 vms:
vm1 linux
vm2 windows with a vpn client
Is there a way into my mikrotik to route all trafic from a given IP to the other IP through its VPN?
The Windows VM running the VPN client must provide “internet connection sharing” in order that you could use it as an entry point to the VPN tunnel for some other device, and you don’t need a Mikrotik to facilitate such connection to the Linux VM - you simply create a virtual network with one NIC of the Windows VM and one NIC of the Linux VM, attach a DHCP client to that NIC on the Linux VM, tell the Windows to share the “internet connection” from the VPN client interface to that NIC, and let the Linux use 192.168.137.1 as the gateway for whatever traffic you need to send via the VPN (Windows use 192.168.137.0/24 as the “LAN interface” in this arrangement).
The only thing I’m not sure about is whether Virtualbox supports virtual networks where the host system doesn’t participate.