R
R
Ruslan2018-05-21 12:47:05
VPN
Ruslan, 2018-05-21 12:47:05

How to configure VPN routes correctly?

I set up OpenVPN, the tunnels go up, but the ping to external resources disappears. There is a router on the way. I'm running on a client host. In the routing table, the rules are written automatically. Maybe I missed something in the rules?

route
Таблица маршутизации ядра протокола IP
Destination Gateway Genmask Flags Metric Ref Use Iface
default         10.21.8.138     128.0.0.0       UG    0      0        0 tun0
default         KEENETIC_LITE   0.0.0.0         UG    0      0        0 wlan0
10.21.0.1       10.21.8.138     255.255.255.255 UGH   0      0        0 tun0
10.21.8.138     *               255.255.255.255 UH    0      0        0 tun0
37.221.213.88   KEENETIC_LITE   255.255.255.255 UGH   0      0        0 wlan0
128.0.0.0       10.21.8.138     128.0.0.0       UG    0      0        0 tun0
192.168.1.0     *               255.255.255.0   U     9      0        0 wlan0

# TorVPN OpenVPN configuration
# Server moon.vpn.torvpn.com
# Username taomao
# No password authentication

client
dev tun
nobind
resolv-retry infinite
tun-mtu 1500
mssfix 1450



proto tcp
remote 37.221.213.88
port 443

ns-cert-type server
key-direction 1
cipher AES-256-CBC

persist-key
persist-tun
comp-lzo
keepalive 5 60

script-security 2

# uncomment the following lines on Linux
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question