OPNsense Forum

English Forums => General Discussion => Topic started by: olivierfaber on October 29, 2018, 10:01:53 am

Title: OpenVPN with OTP and static-challenge
Post by: olivierfaber on October 29, 2018, 10:01:53 am
The OpenVPN client has a nice option to add a challenge/response input box to enter a OTP, however I can't figure out how this should work in OPNsense.

I configured OpenVPN with google authenticator (which works), but it requires my colleagues to enter the number in front of the password. I feel it would be much more user friendly if we could use the "static-challenge" option in the client (screenshot attached).

Just setting the static-challenge option in the client gives a "SIGUSR1[soft,auth-failure] received, process restarting".

Has anyone tried to configure it like this? Is it even possible?
Title: Re: OpenVPN with OTP and static-challenge
Post by: guywyers on March 03, 2019, 12:49:13 pm
I had this working too in a config with openvpn on a standalone linux box.

I even patched two openvpn plugins (https://github.com/threerings/openvpn-auth-ldap (https://github.com/threerings/openvpn-auth-ldap) and https://github.com/evgeny-gridasov/openvpn-otp (https://github.com/evgeny-gridasov/openvpn-otp)) to get it to work.

Although I'm a huge fan of OpnSense, I never succeeded in getting this to work and would love to see it on the feature list.

For it to work, the password that is returned from the client needs to be processed in a specific way. This in turn requires the authentication module (whatever that is) to 1/ be aware that it is not the usual password it is receiving and 2/ to do the specific processing to split up the normal password and the otp reply.
Title: Re: OpenVPN with OTP and static-challenge
Post by: tbandixen on March 05, 2019, 02:08:10 pm
I would realy love to see this feature on the roadmap!

(Viscosity has this feature too.)
Title: Re: OpenVPN with OTP and static-challenge
Post by: franco on March 05, 2019, 07:34:05 pm
Tickets please, you guys and gals know the drill... :)
Title: Re: OpenVPN with OTP and static-challenge
Post by: tbandixen on March 06, 2019, 08:09:20 am
Feature request opened.

To keep things together here is the issue https://github.com/opnsense/core/issues/3290.
Title: Re: OpenVPN with OTP and static-challenge
Post by: tbandixen on March 06, 2019, 10:53:53 am
As AdSchellevis mentioned:

Code: [Select]
opnsense-patch 2c2eca7will do the trick