OpenVPN on linux as client to Cisco VPN using MS 2FA

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rmf
OpenVpn Newbie
Posts: 1
Joined: Wed Mar 16, 2022 7:46 pm

OpenVPN on linux as client to Cisco VPN using MS 2FA

Post by rmf » Wed Mar 16, 2022 8:02 pm

I've been usinng openconnect (OpenVPN client on Ubuntu) for many years without a hitch, in order to connect my Ubuntu server with the university's network. On the university side, thy use a Cisco VPN server. Now they want to enable what they call two step authentication. This requires sending a tokent (OTP, SMS code, etc) after entering the name and password.

However, I could not get this to work - mainly because I lack the knowledge on how this is to be handled by openVPN. I can use the google OTP generator, or even better, the MicroSoft OTP generator (which is recommended) to generate the token, or I can have one sent by SMS.

But I just can't find any step by step instructions on what to do to get that working. I know from the manual that openconnect has the --token-mode and --token-secret options, but I can't get that properly configured.

Has anyone achieved this and is willing to share his/her knowledge?

Thanks in advance
Robert

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN on linux as client to Cisco VPN using MS 2FA

Post by Pippin » Wed Mar 16, 2022 8:06 pm

Openconnect is not OpenVPN.

The protocols are incompatible.
.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN on linux as client to Cisco VPN using MS 2FA

Post by TinCanTech » Wed Mar 16, 2022 8:43 pm

Ask the university for your client file.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: OpenVPN on linux as client to Cisco VPN using MS 2FA

Post by openvpn_inc » Sat Mar 19, 2022 9:25 pm

Hi Robert,

Both Microsoft Authenticator and Google's are TOTP services, usually interchangeable. But of course as Pippin pointed out (as does the FAQ at the wiki!) OpenVPN can't connect to ipsec, and vice versa.

regards, rob0
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply