Disable auto reconnect - Set automatic disconnect
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Feb 17, 2014 3:07 am
Disable auto reconnect - Set automatic disconnect
Hi,
Is there anyway to:
1.Set a timeout so that if a user remains idle on their connection for a set amount of time they will be disconnected from the OpenVPN service.
2. Make OpenVPN not connect automatically after computer wakes from sleep or the computer turns on, so if user forgets to disconnect their session they are not automatically reconnected when they turn their computers on again.
Thank You.
Is there anyway to:
1.Set a timeout so that if a user remains idle on their connection for a set amount of time they will be disconnected from the OpenVPN service.
2. Make OpenVPN not connect automatically after computer wakes from sleep or the computer turns on, so if user forgets to disconnect their session they are not automatically reconnected when they turn their computers on again.
Thank You.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Jan 21, 2014 8:24 am
Re: Disable auto reconnect - Set automatic disconnect
Where i have to set the --inactive n option? Is there a config file?
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Jan 21, 2014 8:24 am
Re: Disable auto reconnect - Set automatic disconnect
I am using Access Server version: 2.0.3 (Appliance with update) on Ubuntu 13.10
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Feb 17, 2014 3:07 am
Re: Disable auto reconnect - Set automatic disconnect
Thank you debbie10t.
Unfortuantely that does not appear to be doing anything. Can you have a look at my settings and let me know if it is a simple syntax error?
In "Advanced VPN" Under "Client Config Directives" I entered: "--inactive 300 [51200]"
I also tried:
"--inactive 300 51200"
"--inactive 300 [51200]"
"inactive 300 [51200]"
Without the quotes of course.
To my understanding the above settings should make the OpenVPN client disconnect after 5 minutes of activity if less than <50Kb was transmitted. Am I correct on this?
Thank You.
Unfortuantely that does not appear to be doing anything. Can you have a look at my settings and let me know if it is a simple syntax error?
In "Advanced VPN" Under "Client Config Directives" I entered: "--inactive 300 [51200]"
I also tried:
"--inactive 300 51200"
"--inactive 300 [51200]"
"inactive 300 [51200]"
Without the quotes of course.
To my understanding the above settings should make the OpenVPN client disconnect after 5 minutes of activity if less than <50Kb was transmitted. Am I correct on this?
Thank You.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Feb 17, 2014 3:07 am
Re: Disable auto reconnect - Set automatic disconnect
Thank You Debbie. That appears to be working to disconnect clients after 5 minutes with less than 50Kb transferred but they automatically reconnect straight away. Any idea why this might be?
Thank You,
Shannon
Thank You,
Shannon
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Feb 17, 2014 3:07 am
Re: Disable auto reconnect - Set automatic disconnect
The problem with Access Server is that the keepalive directive is buried somewhere in the appliance, appears no option via the webadmin client to disable it. So when you try to set ping-exit it conflicts with keepalive. Of course keepalive is setting ping-restart when we want ping-exit.
Error:
process started and then immediately exited: ["Options error: --keepalive conflicts with --ping, --ping-exit, or --ping-restart. If you use --keepalive, you don't need any of the other --ping directives."]
service failed to start or returned error status
process started and then immediately exited: ["Options error: --keepalive conflicts with --ping, --ping-exit, or --ping-restart. If you use --keepalive, you don't need any of the other --ping directives."]
service failed to start or returned error status
Is there a way I can dig into the appliance VM and remove the default keepalive setting?
Error:
process started and then immediately exited: ["Options error: --keepalive conflicts with --ping, --ping-exit, or --ping-restart. If you use --keepalive, you don't need any of the other --ping directives."]
service failed to start or returned error status
process started and then immediately exited: ["Options error: --keepalive conflicts with --ping, --ping-exit, or --ping-restart. If you use --keepalive, you don't need any of the other --ping directives."]
service failed to start or returned error status
Is there a way I can dig into the appliance VM and remove the default keepalive setting?
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Feb 23, 2016 7:40 pm
Re: Disable auto reconnect - Set automatic disconnect
Seems like the answers I need got deleted. How can I configure OpenVPNAS to disconnect VPN clients after inactivity?
Thank you very much!
Thank you very much!
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: Disable auto reconnect - Set automatic disconnect
Access server support: here.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue May 15, 2018 12:59 pm
Re: Disable auto reconnect - Set automatic disconnect
Hi there i would really like to know the answer to this but the reply has been deleted and the help search functionality doesn't let you search for 'auto disconnect' because apparently its too common a term!!!
Please can you post the answer
Please can you post the answer
- novaflash
- OpenVPN Inc.
- Posts: 1073
- Joined: Fri Apr 13, 2012 8:43 pm
Re: Disable auto reconnect - Set automatic disconnect
Maybe this is what you are looking for.
https://docs.openvpn.net/command-line/o ... _threshold
https://docs.openvpn.net/command-line/o ... _threshold
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Sat Jan 22, 2022 12:06 am
Re: Disable auto reconnect - Set automatic disconnect
Did you get solution? I have the same issue too, want to disable the auto reconnect. Auto reconnect is convenient for most of the cases but not always, I need manually to click "reconnect" to continue after it disconnected/lost Internet or so.
Last edited by joeytian on Sat Jan 22, 2022 12:14 am, edited 1 time in total.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Sat Jan 22, 2022 12:06 am
Re: Disable auto reconnect - Set automatic disconnect
This is NOT the case, at least not me.novaflash wrote: ↑Wed May 16, 2018 12:46 pmMaybe this is what you are looking for.
https://docs.openvpn.net/command-line/o ... _threshold