My local network is
192.168.0.0/24 and I can ssh properly to the host
192.168.0.3. But after activating VPN (using
vpnc) I can't ssh into above host anymore, because
22.214.171.124/24 network now points to the remote one (the one i VPNed into).
Is there any way to add exception (change in routing table maybe?) for IP
192.168.0.3 so it always points to the host in local network (not remote one) so I can ssh into it even while being connected to VPN?
My os: Manjaro 18.1.5 / soon to be 19
Interfaces after activating VPN:
inet 192.168.0.2/24 brd 192.168.0.255 scope global dynamic noprefixroute enp5s0
inet 192.168.108.151/32 scope global tun0
ip r result:
default via 192.168.0.1 dev enp5s0 proto dhcp metric 100 10.0.0.0/8 dev tun0 scope link <IP1> via 192.168.0.1 dev enp5s0 src 192.168.0.2 172.16.0.0/12 dev tun0 scope link 192.168.0.0/24 dev enp5s0 proto kernel scope link src 192.168.0.2 metric 100 192.168.0.0/16 dev tun0 scope link 192.168.100.44 dev tun0 scope link 192.168.108.128/25 dev tun0 scope link 192.168.202.44 dev tun0 scope link
-- EDIT -- It works now, but I have no idea why. Since it works I can't verify the answers below. When the problem happens again I will try the solutions, thank you.