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?
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