Skip to contentSkip to conversation

openvpn support for challenge-response otp (user+pass+otp)

Openvpn-devel Pasi Kärkkäinen 4 participants 7 messages Jul 13, 2011 – Mar 12, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

Has anyone implemented challenge-response support to openvpn and openvpn gui?

I'd like to be able to authenticate openvpn users so that all these are required:
1) x509 certificate
2) username + password
3) one time password (otp)

So after the user gets user+pass prompt, and the password is verified to be correct, the user will get another prompt asking for a one time password.

OTP can be delivered as sms to the user, or it could be rsa securid value from the token, or something else..

Openvpn gui would need to be able to present additional prompt after the usual user+pass prompt.. For example openssh supports challenge-response, so user+pass+otp is possible with it.

Thoughts/plans?

-- Pasi

#1 lore raw

Hi Pasi,

There's some support for challenge-response authentication in OpenVPN:

<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=commit;h=3cf9dd88fd84108eccfcce0ebf44e00f9481cd82>

This code is in the "master" branch. Look here for instructions on how to fetch the sources:

<https://community.openvpn.net/openvpn/wiki/DeveloperDocumentation#Maindevelopmentrepositorygit>

Hope this helps,

Samuli

Quoted 32 lines

Hello,

Has anyone implemented challenge-response support to openvpn and openvpn gui?

I'd like to be able to authenticate openvpn users so that all these are required:
1) x509 certificate
2) username + password
3) one time password (otp)

So after the user gets user+pass prompt, and the password is verified to be correct, the user will get another prompt asking for a one time password.

OTP can be delivered as sms to the user, or it could be rsa securid value from the token, or something else..

Openvpn gui would need to be able to present additional prompt after the usual user+pass prompt.. For example openssh supports challenge-response, so user+pass+otp is possible with it.

Thoughts/plans?

-- Pasi

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#2 lore raw
Quoted 6 lines · Samuli Seppänen

Hi Pasi,

There's some support for challenge-response authentication in OpenVPN:

<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=commit;h=3cf9dd88fd84108eccfcce0ebf44e00f9481cd82>

Cool! Based on the commit summary it says in "client mode".. so the server parts are still missing?

I'd probably want to use it with openvpn-auth-pam plugin, with pam-radius-plugin set to do challenge-response authentication. I'll take a look at the sources soon..

-- Pasi

Quoted 42 lines

This code is in the "master" branch. Look here for instructions on how to fetch the sources:

<https://community.openvpn.net/openvpn/wiki/DeveloperDocumentation#Maindevelopmentrepositorygit>

Hope this helps,

Samuli

Quoted 32 lines

Hello,

Has anyone implemented challenge-response support to openvpn and openvpn gui?

I'd like to be able to authenticate openvpn users so that all these are required:
1) x509 certificate
2) username + password
3) one time password (otp)

So after the user gets user+pass prompt, and the password is verified to be correct, the user will get another prompt asking for a one time password.

OTP can be delivered as sms to the user, or it could be rsa securid value from the token, or something else..

Openvpn gui would need to be able to present additional prompt after the usual user+pass prompt.. For example openssh supports challenge-response, so user+pass+otp is possible with it.

Thoughts/plans?

-- Pasi

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#6 lore raw
In reply to Pasi Kärkkäinen
Quoted 6 lines · Pasi Kärkkäinen

Openvpn gui would need to be able to present additional prompt after the usual user+pass prompt..
For example openssh supports challenge-response, so user+pass+otp is possible with it.

Thoughts/plans?

These are great news.
OTPs are very interesting devices.

We recommend using OATH OTP tokens. The main algorithms are hotp (event based) and totp (time based). GOOZE offers the c100 (event based) and the c200 (time based). We always deliver seed codes.

In order to help OpenVPN community add support for OTPs, GOOZE is happy to offer 10 OTP c200 tokens to interested developers.

To receive a free token, visit this page:
http://www.gooze.eu/feitian-otp-c200-for-free-software-development

There are numerous projects using GOOZE Feitian c100 and C200, including OATH toolkit: http://www.nongnu.org/oath-toolkit/

Kind regards,

Signature · 1 line
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu
#3 lore raw
In reply to Samuli Seppänen
Quoted 5 lines

-----Original Message-----
From: Samuli Seppänen [mailto:[email protected]...]

There's some support for challenge-response authentication in OpenVPN:

Quoted 9 lines

<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-
testing.git;a=commit;h=3cf9dd88fd84108eccfcce0ebf44e00f9481cd82>

This code is in the "master" branch. Look here for instructions on how to fetch the sources:

<https://community.openvpn.net/openvpn/wiki/DeveloperDocumentation#Main
developmentrepositorygit>

Note that this code was refactored quite heavily, and now lives in its own verification module.

It lives here at the moment: https://github.com/andj/openvpn-ssl-refactoring/blob/master/ssl_verify.c . The verification code is called from key_method_2_write and key_method_2_read, in ssl.c (https://github.com/andj/openvpn-ssl-refactoring/blob/master/ssl.c).

Adriaan

#4 lore raw

[Openvpn-devel] Donation of an OTP for the OpenVPN project

Quoted 3 lines

and now lives in its own verification module.

It lives here at the moment: https://github.com/andj/openvpn-ssl-refactoring/blob/master/ssl_verify.c . The verification code is called from key_method_2_write and key_method_2_read, in ssl.c (https://github.com/andj/openvpn-ssl-refactoring/blob/master/ssl.c).

Dear Adrian,

OTP are very interesting devices. We recommend using OATH OTP tokens. The main algorithms are hotp (event based) and totp (time based). GOOZE offers the c100 (event based) and the c200 (time based).

In order to help OpenVPN community add support for OTPs, GOOZE is happy to offer 10 OTP c200 tokens to interested developers.

To receive a free token, visit this page:
http://www.gooze.eu/feitian-otp-c200-for-free-software-development

There are numerous projects using GOOZE Feitian c100 and C200, including OATH toolkit: http://www.nongnu.org/oath-toolkit/

Kind regards,
Jean-Michel Pouré

Signature · 7 lines
                      GOOZE - http://www.gooze.eu
                   High quality cryptographic tools 
                  for GNU/Linux, Mac OS X and Windows
                     including the FEITIAN PKI card
     POURE SASU - 17 rue Saint Jacques - 95160 Montmorency - France
       Tel : +33 (0)9 72 13 53 90 - Mobile : +33 (0)6 27 87 52 38
         Registry: FR 527 672 448 00018 - VAT: FR54527672448
#5 lore raw
In reply to Adriaan de Jong
Quoted 11 lines · Adriaan de Jong
Quoted 11 lines

-----Original Message-----
From: Samuli Seppänen [mailto:[email protected]...]

There's some support for challenge-response authentication in OpenVPN:

<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-
testing.git;a=commit;h=3cf9dd88fd84108eccfcce0ebf44e00f9481cd82>

This code is in the "master" branch. Look here for instructions on how to fetch the sources:

Quoted 8 lines
Quoted 3 lines

<https://community.openvpn.net/openvpn/wiki/DeveloperDocumentation#Main
developmentrepositorygit>

Note that this code was refactored quite heavily, and now lives in its own verification module.

It lives here at the moment: https://github.com/andj/openvpn-ssl-refactoring/blob/master/ssl_verify.c . The verification code is called from key_method_2_write and key_method_2_read, in ssl.c (https://github.com/andj/openvpn-ssl-refactoring/blob/master/ssl.c).

Hello!

What's the current status of OpenVPN challenge/response support?

I got busy with other projects and didn't test/investigate this yet, but I'll probably get to it in the near future..

Thanks!

-- Pasi