Connect to openconnect VPNs which require OTP password automatically with automatic reconnection on disconnect.
- OpenConnect (for connecting to OpenConnect based VPNs)
Installing Brew requirments:
brew install openconnect
Installing Python requirments:
pipenv install
A Prompt will appear when running this app for the first time, A configuration file will be generated in users home folder:
~/.pyotp/config
pipenv run pyotp-vpn
It might be beneficial to make a patch which includes proprietary information for your organization.
Configuration arguments: args = Any configuration flags that would normally be passed to openconnect, for example --no-dtls or --protocol=pulse routes = a new-line seperated list of prefixes (routes) to be added by vpn-slice (Split-tunnel allowed networks) domains = a new-line seperated list of domain names we want to add a resolver for (DNS via VPN)
[pulse]
args = --protocol=pulse --no-dtls <--other-options--> <--vpn-url-->
routes =
10.0.0.0/8
172.16.0.0/12
8.8.8.0/24
domains =
domain1.com
domain2.com
domain3.com