Page 1 of 1

Comms keeps stopping - ping fails

Posted: Thu Jan 06, 2011 12:39 am
by azurebell
OpenVPN is really starting to drive me up the wall. I just cannot keep it working.

The openvpn.log shows nothing is wrong.
Ping will work and then it wont.
I have no firewall - it is disabled.

I have mucked around with fragment and mssfix settings to no avail. It works for a bit then it stops, then it works for a bit and then it stops.

My server.conf has the following:
port 1194
proto udp
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
client-to-client
keepalive 60 180
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 4
crl-verify crl.pem

And my client.conf:
client
proto udp
dev tun
remote xxxxxxxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert mypc.crt
key mypc.key
comp-lzo
pull
verb 5
log openvpn.log

Can anyone help please?
Cheers

Re: Comms keeps stopping - ping fails

Posted: Thu Jan 06, 2011 12:48 am
by azurebell
We are using OpenVPN 2.0 btw. Also a closer look at my log file shows the following messages:

17:00:13 Initialization sequence completed
17:03:30 Inactivity timeout, restarting
17:03:30 Closing socket
...
then
17:03:32 Initial packet from nnn.nn.nnn.nn:1194
...


So, I can ping (for example) goggle.com at all times. So I definitely always have an internet connection.
But I can only occasionally ping 10.8.0.1