Конфиг сервера:
grep -v -e '#' -e ';' /etc/openvpn/server.conf
port 1194
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/penis.crt
dh /etc/openvpn/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd
push "redirect-gateway def bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 9
Подключается мгновенно, но пинги до 8.8.8.8 не ходят, по traceroute:
$ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 10.8.0.1 (10.8.0.1) 56.029 ms 56.217 ms 56.442 ms
2 * * *
3 * * *
4 * * *
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.0.5 0.0.0.0 UG 50 0 0 tun0
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 enp0s25
10.8.0.1 10.8.0.5 255.255.255.255 UGH 50 0 0 tun0
10.8.0.5 0.0.0.0 255.255.255.255 UH 50 0 0 tun0
79.133.49.101 192.168.0.1 255.255.255.255 UGH 100 0 0 enp0s25
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp0s25
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-5660dd1417b2
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s25
192.168.0.1 0.0.0.0 255.255.255.255 UH 100 0 0 enp0s25
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
В логах сервера пусто, 8.8.8.8 вообще не отображается.