You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2024. It is now read-only.
Runs an external script to decide whether to authenticate a user or not. Useful for checking 2FA on VPN auth attempts as it doesn't block the main openvpn process, unlike passing the script to--auth-user-pass-verify flag.
The idea of the plugin is to do as little as possible, and let the external binary do all the heavy lifting itself.
Installation
Compile the shared library withmake plugin and copyopenvpn-plugin-auth-script.so into yourlib/openvpn/plugins/ folder.
Copy your external script onto the machine in a sane place, making sure it's executable by the user openvpn is running as.
Configure the plugin in your openvpn config, passing the path to the external script as the second argument:
If you're usingstatic-challenge, you might wonder where the response value is in the env hash. See the OpenVPN management-notes docs for more info, but it's passed as part of the password.
The format in the env password value isSCRV1:<BASE64_PASSWORD>:<BASE64_RESPONSE>
License
See LICENSE.
About
OpenVPN plugin to auth connections using non-blocking external script