PFSence HAProxy forbid /admin directory

Hello

I am new to the PFSence world, until now my proxy was a nignx docker on the server.
Now I switched to HAProxy on the PFSence, this gives advantages for the internal and external frontend.
My question is how do I forbid the subdirectory /admin from my Vaultwarden to the external frontend?

Kind regards

Welcome to the forums, that is not something I have tried setting up and if no one here has any suggestions you might want to look in the official Netgate forums for an answer.

Adding the following to the ACL and Actions sections should do the trick…

Default backend, access control lists and actions

Access Control lists:

Name Expression Expression CS Not Value Actions
deny_admin_subfolder Path regex: no no /admin

Actions

Action Parameters Conditional acl names Actions
http-request-deny See below deny_admin_subfolder

Hi

Thanks for the info, that’s how it works.

Greetings

2 Likes