Hi all,
Every so often, my OpenVPN stops connecting to remote addresses until I reboot.
When this occurs, I'm able to ping, tracert, and resolve these remote addresses as normal. Connections that have already been established (IRC, instant messenger, et al) continue to function, but new connections through my OpenVPN adapter simply don't respond.
Until last week, I was running OpenVPN 2.2.2 on Windows 7 x64. I've since downgraded to 2.1.4 to match my server's version, but this had no effect. I don't dare risk a server upgrade to 2.2.2, both because my server's update repository doesn't contain it and because this OpenVPN is currently my only means of internet access. If something goes wrong, I'm boned.
Sometimes, simply waiting a while resolves this issue. If I'm busy doing something that doesn't require internet access, sometimes I find I'm able to access the internet again in ten minutes, sometimes in several hours, sometimes never again until I reboot. I can confirm this phenomenon is in no way related to the hourly handshake, as I've seen my connectivity disappear and then reappear before the next handshake.
Restarting OpenVPN GUI doesn't help, restarting OpenVPN itself doesn't help, repairing the associated network adapters doesn't help, nor does logging off help; nothing short of a reboot (or the miraculous phenomenon described in the previous paragraph) seems to have any effect.
Client config:
client
dev tun
proto tcp
remote <ip> <port>
resolv-retry infinite
nobind
persist-key
persist-tun
socks-proxy <ip> <port>
ca ca.crt
cert home.crt
key home.key
ns-cert-type server
tls-auth tls.key 1
cipher AES-256-CBC
comp-lzo adaptive
verb 3
connect-retry 1
route-metric 1
route-nopull
route 0.0.0.0 0.0.0.0
up-restart
Server config:
local <ip>
port <port>
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.4.4"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
tls-server
tls-auth tls.key 0
cipher AES-256-CBC
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
chroot /var/empty
If restarting the OpenVPN client doesn't resolve the issue, clearly, the OpenVPN client isn't at fault. If rebooting my system resolves the issue, clearly, the OpenVPN server isn't at fault. What, then, could possibly be wrong here? I'm at a complete and total loss.