In order to ssh into a computer I need to connect to its Cisco AnyConnect Compatible VPN (openconnect) server.
I can do that without a problem, but I would like only the ssh traffic to be routed using the vpn. Mainly because I want to be able to use remote desktop to access my computer and I cannot do that when connected to the vpn.
Is this possible? how?
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.1.9.1 0.0.0.0 UG 0 0 0 eth0
10.1.9.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
128.143.1.0 0.0.0.0 255.255.255.0 U 0 0 0 vpn0
128.143.20.85 0.0.0.0 255.255.255.255 UH 0 0 0 vpn0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.35.48.194 10.1.9.1 255.255.255.255 UGH 0 0 0 eth0