G
G
geher522016-01-29 16:33:32
linux
geher52, 2016-01-29 16:33:32

Why is the default route not added when connecting to OpenVPN?

When connecting from a mobile phone (nokia n950), the default route is not added to the vpn. As a result, the traffic goes as usual, and not through the tunnel. Only the VPN network is accessible through the tunnel. There is an error in the log

unable to redirect default gateway -- Cannot read current default gateway from system

routes to connect to vpn
$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 gprs0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kisoluck, 2016-01-29
@kisoluck

You should have a route in the routing table, where in the destination field - default. Then there should be no error. Openvpn will see it and replace it with its own

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question