OPNsense Forum

English Forums => General Discussion => Topic started by: mc.gyver.reboot on January 30, 2023, 05:08:44 pm

Title: Double authentication and emergency account
Post by: mc.gyver.reboot on January 30, 2023, 05:08:44 pm
Hello,

I want to put double authentication on my OPNSense but I read in the documentation that once activated, no account without 2FA can connect.
Do you have a solution for emergency access accounts, in case the authentication server is no longer reachable?

Thank you for your help !
Title: Re: Double authentication and emergency account
Post by: Mks on January 30, 2023, 08:45:54 pm
Hi, may this helps: https://docs.opnsense.org/troubleshooting/password_reset.html (https://docs.opnsense.org/troubleshooting/password_reset.html)?

Br
Title: Re: Double authentication and emergency account
Post by: mc.gyver.reboot on February 09, 2023, 09:15:44 am
Hi, unfortunately this does not answer my question.
My problem is that if double authentication is enabled, I cannot create an account without MFA, which gives me a problem because we need to create an "emergency" account without MFA in the event that double authentication is n is not available.
Do you have a solution?
Title: Re: Double authentication and emergency account
Post by: franco on February 09, 2023, 10:32:50 am
What's your recovery strategy?

Typically you can set the console to unlocked for recovery purposes or disable integrated authentication, which allows you to log into console, ssh or sudo with password and not MFA.

If you want this for the GUI that is impossible (and insecure).


Cheers,
Franco
Title: Re: Double authentication and emergency account
Post by: Patrick M. Hausen on February 09, 2023, 10:41:37 am
I'd suggest ssh with key.
Title: Re: Double authentication and emergency account
Post by: franco on February 09, 2023, 11:30:29 am
Right, didn't even come to mind as that should be the case always. :)


Cheers,
Franco
Title: Re: Double authentication and emergency account
Post by: mc.gyver.reboot on February 14, 2023, 11:58:42 am
Thank you for your help, so I think what we want to do is therefore impossible.
Title: Re: Double authentication and emergency account
Post by: franco on February 14, 2023, 12:22:11 pm
I suppose eventually a strategy is to either use an external auth (that includes os-freeradius) on the same box, but has some added risk for emergence accounts when the network or software is not responding.

The risk-free approach would be to have multiple "local authentication" servers that you can hold accounts so that these accounts do not reach out to 2FA, but that would be the first request I've heard and likely not within core scope.

That being said, it's possible to create a plugin for this from the existing authenticators and a user selector added, but it will likely not meet inclusion standards for core and plugins repositories.


Cheers,
Franco