Randomly losing connection to server

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Locked
madams9
OpenVpn Newbie
Posts: 2
Joined: Wed Dec 19, 2012 10:11 pm

Randomly losing connection to server

Post by madams9 » Thu Sep 26, 2013 6:38 pm

Howdy!

New here, hope this is the correct place to post this.

I searched the forum and did not find anything that looked similar to what I'm dealing with. Specifically, my connection to IPredator is failing every day at random times.

I'm getting this in /var/log/syslog:

Code: Select all

May 24 08:39:58 spike openvpn[1791]: Options error: In [CMD-LINE]:1: Error opening configuration file: multi-user.conf
May 24 08:39:58 spike openvpn[1791]: Use --help for more information.
May 24 08:39:58 spike systemd[1]: openvpn@multi-user.service: control process exited, code=exited status=1
May 24 08:39:58 spike systemd[1]: Unit openvpn@multi-user.service entered failed state.
I don't think that this is the failure I'm experiencing because it isn't as frequent as the failures and the timing seems off, but at some point during the day, Gkrellm shows the Krell for tun0 just going blank; the vpn just stops responding.

I don't know if this is an issue at the IPredator server or the client on my end, but if there is something I can do to prevent it, that would be great.

I'm using the network applet in kde to operate the vpn connection. I suppose I should try it from the console, but one of the reasons I went to the trouble to configure the applet is that it seemed to be more stable than running the script in a terminal.

Any other tips on troubleshooting this?

Thanks.

Mark

madams9
OpenVpn Newbie
Posts: 2
Joined: Wed Dec 19, 2012 10:11 pm

Re: Randomly losing connection to server

Post by madams9 » Thu Sep 26, 2013 7:46 pm

Thanks for the prompt reply.
I don't run the server, therefore, I do not have access to their information.

Here is the config for my connection:

Code: Select all

client
dev tun
proto udp
#proto tcp
remote pw.openvpn.ipredator.se 1194
#remote pw.openvpn.ipredator.se
resolv-retry infinite
nobind

auth-user-pass /etc/openvpn/xxxxxxxxx.xxx

ca [inline]

tls-client
tls-auth [inline]
ns-cert-type server

keepalive 10 30
cipher AES-256-CBC
#tls-cipher TLSv1:!ADH:!SSLv2:!NULL:!EXPORT:!DES:!LOW:!MEDIUM:@STRENGTH
persist-key
persist-tun
comp-lzo
tun-mtu 1500
mssfix
passtos
verb 3
Since openvpn is logging to syslog and I doubt you actually want me to post my entire syslog to this message, I am pasting in a grep of all references to "openvpn" in /var/log/syslog:

Code: Select all

May 19 04:02:31 spike msec: udp        0      0 *:40493                     *:*                                     openvpn
May 19 04:02:31 spike msec: -   Added processes with open network ports : udp        0      0 *:40493                     *:*                                     openvpn
May 19 04:02:32 spike msec: - Removed processes with open network ports : udp        0      0 *:39207                     *:*                                     openvpn
May 20 04:02:26 spike msec: udp        0      0 *:40493                     *:*                                     openvpn
May 21 04:02:46 spike msec: udp        0      0 *:40493                     *:*                                     openvpn
May 21 16:02:14 spike openvpn[1794]: Options error: In [CMD-LINE]:1: Error opening configuration file: multi-user.conf
May 21 16:02:14 spike openvpn[1794]: Use --help for more information.
May 21 16:02:15 spike systemd[1]: openvpn@multi-user.service: control process exited, code=exited status=1
May 21 16:02:15 spike systemd[1]: Unit openvpn@multi-user.service entered failed state.
May 22 04:02:34 spike msec: udp        0      0 *:51881                     *:*                                     openvpn
May 22 04:02:34 spike msec: -   Added processes with open network ports : udp        0      0 *:51881                     *:*                                     openvpn
May 22 04:02:34 spike msec: - Removed processes with open network ports : udp        0      0 *:40493                     *:*                                     openvpn
May 23 04:02:54 spike msec: - Removed processes with open network ports : udp        0      0 *:51881                     *:*                                     openvpn
May 24 04:03:07 spike msec: udp        0      0 *:35299                     *:*                                     openvpn
May 24 04:03:07 spike msec: -   Added processes with open network ports : udp        0      0 *:35299                     *:*                                     openvpn
May 24 08:39:58 spike openvpn[1791]: Options error: In [CMD-LINE]:1: Error opening configuration file: multi-user.conf
May 24 08:39:58 spike openvpn[1791]: Use --help for more information.
May 24 08:39:58 spike systemd[1]: openvpn@multi-user.service: control process exited, code=exited status=1
May 24 08:39:58 spike systemd[1]: Unit openvpn@multi-user.service entered failed state.
May 25 04:02:30 spike msec: udp        0      0 *:44276                     *:*                                     openvpn
May 25 04:02:30 spike msec: -   Added processes with open network ports : udp        0      0 *:44276                     *:*                                     openvpn
May 25 04:02:30 spike msec: - Removed processes with open network ports : udp        0      0 *:35299                     *:*                                     openvpn
May 25 20:38:09 spike perl: [RPM] openvpn-2.2.2-5.3.mga2.i586 installed
May 25 20:38:12 spike perl: [RPM] openvpn-2.2.2-5.mga2.i586 removed
Please let me know if you need anything else.

I appreciate your time and attention.

Mark

Locked