Yes, there are several scripts available for OpenConnect that can automatically connect or reconnect. Some examples of these scripts are:
openconnect-autoconnect: This is a bash script that runs OpenConnect and automatically reconnects if the VPN connection drops. It uses the ping command to check the VPN connection status and reconnects if the ping fails.
AutoConnect-OpenConnect: This is a Python script that monitors the VPN connection status and automatically reconnects if the connection drops. It can be configured to run as a daemon and has options to set the frequency of checks and the timeout for reconnection.
openconnect-keepalive: This is a bash script that uses the --ping and --ping-timeout options in OpenConnect to keep the VPN connection alive and automatically reconnects if it drops. It can be run as a background process and has options to set the ping interval and timeout.
These scripts can be customized to suit specific needs and can be run as cron jobs or system services to ensure continuous VPN connectivity.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-04-25 11:00:00 +0000
Seen: 16 times
Last updated: Apr 11 '22
How can I set up Gunicorn with a Django Project?
Looking for a Python Module that finds Tags for a Text describing its Content
Need a Function in Python to remove entries less than 2 digits from an Array
How can I convert a Document in Python?
How can I program a Loop in Python?
How can I enable Python Code Highlighting in Askbot?