Using sshuttle on windows through a linux virtual machine

0

I'm trying to connect to a remote server so I could access its local network. My friends on linux machines use sshuttle -r root@my.server.com:2222 192.168.1.96/32 and it works fine. On Windows however sshuttle doesn't seem to work. So I tried to follow this article: https://coderwall.com/p/adfxgw/sshuttle-on-windows I'm using VMware workstation instead of Vagrant (Windows 10 Home lacks Hyper-V it requires) and Ubuntu 18.04. Network adapter is set up with a bridged connection and my VMs IP is 192.168.18.1 (not sure of that, just checked IPv4 on VMnet1)

On the linux VM I run:

sudo sshuttle -l 0.0.0.0 -x 10.0.0.0/8 -x 192.168.0.0/16 -r root@my.server.com:2222 192.168.1.96/32 --ssh-cmd 'ssh -i /home/user/.ssh/key.pem'

On Windows, I run:

route change 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 2
route add 0.0.0.0 mask 0.0.0.0 192.168.18.1 metric 1

As a result, I'm able to access internet on both host and vm, but local IPs like 192.168.1.96 are accessible only from the vm.

Any suggestions on what I'm doing wrong? I'm green in this subject so I'd appreciate detailed answers.

Wojtek Kochanowski

Posted 2019-07-31T12:35:30.090

Reputation: 1

No answers