Solved Able to SSH to a VM on Windows, but not on Linux (Ubuntu)

Solved issue


Correct
 
I think you have to add a route with NetworkManager, you can do that like this.
Code:
nmcli connection modify LAN +ipv4.routes "192.168.99.0/24 192.168.1.1"
I think that should work but replace LAN with the name of your connection. That basically tells for the network 192.158.99.0/24 to use the route 192.168.1.1 which is the gateway of your default lan. Other option would be to make an exclusion in your vpn app or client for your traffic that stays locally.
 
Further experiementation reveals that it is the disabling of the full kill switch (thereby allowing traffic through outside of the the VPN even when the VPN connection is down), combined with disabling the VPN,that allows the SSH and UI connections through

Code:
nmcli connection modify LAN +ipv4.routes "192.168.99.0/24 192.168.1.1"
does not seem to be sufficient to allow pings or SSH connections to 192.168.99.2

I will investigate further to see if this can be done without excluding IP addresses

In any case, f33dm3bits rocks, and I am in your debt
 
does not seem to be sufficient to allow pings or SSH connections to 192.168.99.2
I forgot to mention, after that you also need to run the following.
Code:
nmcli con reload
nmcli con up LAN
You need to replace "LAN" with the name of your actual connection for those commands, as well as in the one in my other reply.
 
Aaaaand...sorted. Thank you all
 


Follow Linux.org

Members online


Top