Static challenge/response authentication is done using scripts on the OpenVPN server combined with a '--static-challenge' option in the OpenVPN client's configuration file.
The --static-challenge option should be included in the client OpenVPN configuration file as
static-challenge <text> <echo>where
<text>is the text that is presented to the user, and<echo>is0to indicate that the user's response should not be echoed, or1to indicate the user's response should be echoed. (The<text>should be quoted if it contains spaces or other special characters.)
- --static-challenge t e
- Enable static challenge/response protocol using challenge text t, with echo flag given by e (0|1).
The echo flag indicates whether or not the user's response to the challenge should be echoed.
See management-notes.txt in the OpenVPN distribution for a description of the OpenVPN challenge/response protocol.
static-challenge "Enter Google Authenticator Code" 1