Connection to other machine via VPN doesn’t work?


For example yoy have IP 10.0.1.100, your net mask is 255.255.0.0.

You are connected to VPN, hosts there have  IP adresses 10.64.x.x

Connect to machine that have problem with connect to hosts via VPN.

Check routing table.

netstat -rn

Kernel IP routing table

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

0.0.0.0         10.0.1.1        0.0.0.0         UG        0 0          0 enp2s0

10.0.0.0        0.0.0.0         255.255.0.0     U         0 0          0 enp2s0

10.0.0.0        0.0.0.0         255.0.0.0       U         0 0          0 enp2s0

192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr0

Two almost the same routing path, but one with netmask 255.0.0.0.

Del this routing path with command:

sudo route del -net 10.0.0.0 netmask 255.0.0.0

And works.

If not, check rules on your router. If you have multiple WAN, and you set default gateway for this host it can be problem.


Kategoria: Bez kategorii

Możliwość komentowania została wyłączona.