View previous topic :: View next topic |
Author |
Message |
r.osmanov n00b
Joined: 21 Oct 2011 Posts: 29
|
Posted: Fri Jan 18, 2013 10:23 am Post subject: [SOLVED] Openvpn looses connection after 10..20 minutes |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Fri Jan 18, 2013 10:49 am Post subject: |
|
|
Is this a vpn service you are buying or one you've set up yourself or work set up? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
r.osmanov n00b
Joined: 21 Oct 2011 Posts: 29
|
Posted: Fri Jan 18, 2013 11:00 am Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Fri Jan 18, 2013 12:09 pm Post subject: |
|
|
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? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
r.osmanov n00b
Joined: 21 Oct 2011 Posts: 29
|
Posted: Fri Jan 18, 2013 3:00 pm Post subject: Solved |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sat Jan 19, 2013 11:42 am Post subject: |
|
|
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. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
r.osmanov n00b
Joined: 21 Oct 2011 Posts: 29
|
Posted: Sat Jan 19, 2013 11:46 am Post subject: |
|
|
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 |
|
|
|