Ask Your Question
4

Is there a script for OpenConnect that automatically connects or reconnects?

asked 2021-04-25 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-11 21:00:00 +0000

huitzilopochtli gravatar image

Yes, there are several scripts available for OpenConnect that can automatically connect or reconnect. Some examples of these scripts are:

  1. 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.

  2. 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.

  3. 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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2021-04-25 11:00:00 +0000

Seen: 13 times

Last updated: Apr 11 '22