HAProxy 2FA

Started by 5k7m4n, July 19, 2020, 06:28:18 PM

Previous topic - Next topic
I am currently using 2FA on opnsense and it is working for the webadmin. I am also successfully using HAProxy and Lets Encrypt for external websites.

I am wondering if it is possible to add user and 2fa password authentication to haproxied websites?

I haven't been able to find any examples yet on doing this, and I see that HAproxy plugin has its own users and groups, so I don't know if the 2fa would even work.

Anyone approached this?

July 20, 2020, 04:08:47 PM #1 Last Edit: July 20, 2020, 04:19:32 PM by cmdr.adama
So... Directly with HAProxy... Not really... However you could use something like this https://github.com/authelia/authelia in conjunction with HAProxy.

Here's a guide on how to use it with HAProxy
https://www.authelia.com/docs/deployment/supported-proxies/haproxy.html