Dear OpenVPN-Community,
I installed OpenVPN server on a Lubuntu 14.04 server which is behind a Fritz!Box. My client is a Windows 8.1 tablet machine.
I have a very very strange behaviour. I can start the VPN via the GUI on the Windows machine and evrything works fine for about one day.
After that without changing anything at the configuration I am able to establish the VPN (status green) but I cannot ping anything from the client and no communication is possible. After a reboot it works again for about another day.
Has anybody an idea what here the problem could be?
Any hints highly appreciated.
Here my config on the server side:
port 1194
proto udp
dev tun
ca ./easy-rsa2/keys/ca.crt
cert ./easy-rsa2/keys/server.crt
key ./easy-rsa2/keys/server.key # This file should be kept secret
dh ./easy-rsa2/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.178.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 199.85.126.10"
push "dhcp-option DNS 199.85.127.10"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
and here the client configuration:
client
dev tun
proto udp
remote my.server.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
I did a route on the client machine when everything is ok:
===========================================================================
Schnittstellenliste
16...00 ff 98 db 05 4a ......TAP-Windows Adapter V9
13...a6 17 31 7c b2 e9 ......Virtueller Microsoft-Adapter fr direktes WiFi
12...a4 17 31 7c b2 e9 ......Broadcom 802.11abgn Wireless SDIO Adapter
10...a4 17 31 7c b2 ea ......Bluetooth-Gert (PAN)
1...........................Software Loopback Interface 1
9...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter
5...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
14...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter #3
===========================================================================
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 10.180.0.1 10.180.44.186 25
0.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 30
10.8.0.1 255.255.255.255 10.8.0.5 10.8.0.6 30
10.8.0.4 255.255.255.252 Auf Verbindung 10.8.0.6 286
10.8.0.6 255.255.255.255 Auf Verbindung 10.8.0.6 286
10.8.0.7 255.255.255.255 Auf Verbindung 10.8.0.6 286
10.180.0.0 255.255.128.0 Auf Verbindung 10.180.44.186 281
10.180.44.186 255.255.255.255 Auf Verbindung 10.180.44.186 281
10.180.127.255 255.255.255.255 Auf Verbindung 10.180.44.186 281
79.229.187.174 255.255.255.255 10.180.0.1 10.180.44.186 25
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 306
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 306
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
128.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 30
192.168.178.0 255.255.255.0 10.8.0.5 10.8.0.6 30
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 306
224.0.0.0 240.0.0.0 Auf Verbindung 10.8.0.6 286
224.0.0.0 240.0.0.0 Auf Verbindung 10.180.44.186 281
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
255.255.255.255 255.255.255.255 Auf Verbindung 10.8.0.6 286
255.255.255.255 255.255.255.255 Auf Verbindung 10.180.44.186 281
===========================================================================
Stndige Routen:
Keine
IPv6-Routentabelle
===========================================================================
Aktive Routen:
If Metrik Netzwerkziel Gateway
1 306 ::1/128 Auf Verbindung
16 286 fe80::/64 Auf Verbindung
12 281 fe80::/64 Auf Verbindung
9 286 fe80::5efe:10.180.44.186/128
Auf Verbindung
16 286 fe80::1c27:8884:ee13:d0be/128
Auf Verbindung
12 281 fe80::d85e:ebc9:9195:839b/128
Auf Verbindung
1 306 ff00::/8 Auf Verbindung
16 286 ff00::/8 Auf Verbindung
12 281 ff00::/8 Auf Verbindung
===========================================================================
Stndige Routen:
Keine
and when no ping and no connection is possible:
===========================================================================
Schnittstellenliste
16...00 ff c9 ea c6 b8 ......TAP-Windows Adapter V9
13...a6 17 31 7c b2 e9 ......Virtueller Microsoft-Adapter fr direktes WiFi
12...a4 17 31 7c b2 e9 ......Broadcom 802.11abgn Wireless SDIO Adapter
10...a4 17 31 7c b2 ea ......Bluetooth-Gert (PAN)
1...........................Software Loopback Interface 1
5...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
3...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter #2
14...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter #3
===========================================================================
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 192.168.178.1 192.168.178.71 25
0.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 30
10.8.0.1 255.255.255.255 10.8.0.5 10.8.0.6 30
10.8.0.4 255.255.255.252 Auf Verbindung 10.8.0.6 286
10.8.0.6 255.255.255.255 Auf Verbindung 10.8.0.6 286
10.8.0.7 255.255.255.255 Auf Verbindung 10.8.0.6 286
79.229.187.174 255.255.255.255 192.168.178.1 192.168.178.71 25
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 306
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 306
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
128.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 30
192.168.178.0 255.255.255.0 Auf Verbindung 192.168.178.71 281
192.168.178.0 255.255.255.0 10.8.0.5 10.8.0.6 30
192.168.178.1 255.255.255.255 192.168.178.1 192.168.178.71 25
192.168.178.71 255.255.255.255 Auf Verbindung 192.168.178.71 281
192.168.178.255 255.255.255.255 Auf Verbindung 192.168.178.71 281
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 306
224.0.0.0 240.0.0.0 Auf Verbindung 10.8.0.6 286
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.178.71 281
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
255.255.255.255 255.255.255.255 Auf Verbindung 10.8.0.6 286
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.178.71 281
===========================================================================
Stndige Routen:
Keine
IPv6-Routentabelle
===========================================================================
Aktive Routen:
If Metrik Netzwerkziel Gateway
1 306 ::1/128 Auf Verbindung
16 286 fe80::/64 Auf Verbindung
12 281 fe80::/64 Auf Verbindung
3 286 fe80::5efe:192.168.178.71/128
Auf Verbindung
16 286 fe80::c16d:ff71:162e:b038/128
Auf Verbindung
12 281 fe80::d85e:ebc9:9195:839b/128
Auf Verbindung
1 306 ff00::/8 Auf Verbindung
16 286 ff00::/8 Auf Verbindung
12 281 ff00::/8 Auf Verbindung
===========================================================================
Stndige Routen:
Keine
Maybe someone could help me. Thank you very much in advance.
Greetings from Munich
Oli