Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Openvpn looses connection after 10..20 minutes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
r.osmanov
n00b
n00b


Joined: 21 Oct 2011
Posts: 27

PostPosted: Fri Jan 18, 2013 10:23 am    Post subject: [SOLVED] Openvpn looses connection after 10..20 minutes Reply with quote

Hi.

My openvpn client (net-misc/openvpn) looses connection after 10..20 minutes.
Then I restart /etc/init.d/openvpn, and it works again. Found nothing interesting
in the openvpn log.

This is my configuration (/etc/openvpn/openvpn.conf)
Code:

client
dev tun
proto udp
nobind
#user nobody
#group nobody
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/rosmanov.crt
key /etc/openvpn/keys/rosmanov.key
comp-lzo
verb 6
auth-user-pass /etc/openvpn/userpass
#remote-cert-tls server
ns-cert-type server
auth-nocache
push "explicit-exit-notify 3"
remote example.domain.com 1194
ping-restart 60
log /var/log/openvpn/client.log


How do I make it more stable?

Thanks.


Last edited by r.osmanov on Fri Jan 18, 2013 3:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2335
Location: Dallas area

PostPosted: Fri Jan 18, 2013 10:49 am    Post subject: Reply with quote

Is this a vpn service you are buying or one you've set up yourself or work set up?
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
r.osmanov
n00b
n00b


Joined: 21 Oct 2011
Posts: 27

PostPosted: Fri Jan 18, 2013 11:00 am    Post subject: Reply with quote

Anon-E-moose wrote:

are you sure
remote example.domain.com 1194

I just changed the domain for this forum.

Anon-E-moose wrote:

I have my ping* commands set this way
Code:
ping-restart 0
ping-timer-rem

Thanks. I'll try with your settings.

Anon-E-moose wrote:

Edit to add: Is this a vpn service you are buying or one you've set up yourself or work set up?

We configured it ourselves for company staff.

Thanks.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2335
Location: Dallas area

PostPosted: Fri Jan 18, 2013 12:09 pm    Post subject: Reply with quote

It could be that the server end isn't set up properly.

I don't run a server but use a pay one, so I'm not sure what goes into that end.

Good luck


Edit to add: Is it losing connectivity while active or idle?

Is more than one computer trying to connect to the server with the same cert?
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
r.osmanov
n00b
n00b


Joined: 21 Oct 2011
Posts: 27

PostPosted: Fri Jan 18, 2013 3:00 pm    Post subject: Solved Reply with quote

Anon-E-moose wrote:
It could be that the server end isn't set up properly.
Edit to add: Is it losing connectivity while active or idle?

Is more than one computer trying to connect to the server with the same cert?


I'm not sure, but most likely it lost connection on idle.
Yes, I connect to the host using the same cert from different machines.

But, it works fine now! The connection is present for about an hour. I guess it
won't loose it further.

Thanks!
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2335
Location: Dallas area

PostPosted: Sat Jan 19, 2013 11:42 am    Post subject: Reply with quote

From my understanding, and I won't claim it's 100% accurate

You can't connect to a server with different machines, using the same cert at the same time.
I have read where it causes some machines to lose connectivity.
I don't use more than one machine at a time, so I can't try it out.


Glad you got it solved.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
r.osmanov
n00b
n00b


Joined: 21 Oct 2011
Posts: 27

PostPosted: Sat Jan 19, 2013 11:46 am    Post subject: Reply with quote

No, it's not at the same time :) I meant I use single cert for multiple machines(clients).
It still sometimes stalls. But it happens rarely. However, I'm satisfied with it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum