OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: tomdh76 on February 05, 2023, 07:03:40 pm

Title: HAProxy and Authelia
Post by: tomdh76 on February 05, 2023, 07:03:40 pm
Thx to the excellent tutorial of @TheHellSite (https://forum.opnsense.org/index.php?topic=23339.225) I have HAproxy working.

I have one service I would like to be entered only through Authelia, to enable 2FA. I see a guide for pfsense (https://dkict.com/pfsense-haproxy-authelia/) but I cannot get it to work in OPNsense

I have the needed lua scripts in place but I cannot find a place to enter the needed configuration for the backend service like "acl remote_user_exist var(req.auth_response_header.remote_user) -m found"

Anyone has this kind of setup working and would like to help me
Title: Re: HAProxy and Authelia
Post by: tadchilly on May 26, 2023, 05:53:18 am
Did you ever get this working? I'm having problems with this too.
Title: Re: HAProxy and Authelia
Post by: ibrahim.djadir on June 06, 2023, 03:17:00 pm
Hi
I am trying to do the same config is there any guidance?
thank you
Title: Re: HAProxy and Authelia
Post by: sorano on June 18, 2023, 04:41:08 pm
This has been possible since 2020:
https://forum.opnsense.org/index.php?topic=19025.0

Regarding config I just "translated" the Authelia docu examples to "OPNsense style of rules/conditions" no other guides needed, just some trial and error/looking at the config to get the correct rules in place.