CoffeeSprout / ansible-role-haproxy

Setup HAProxy
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add ACL support for Allow lists where only listed IP's are allowed to the frontend or backend #4

Open bvansomeren opened 3 years ago

bvansomeren commented 3 years ago

Usecases:

Both should be available separately and allow to ACL only a single backend. Deny lists are not yet implemented as they tend to be implemented at the firewall level.

More info on HAProxy allow lists:

https://www.haproxy.com/blog/introduction-to-haproxy-acls/

Basically we need to add the following lines to the correct stanza: http-request deny if !{ src -f /usr/local/etc/haproxy/allowed.acl }

The acl file itself contains just a list of IP's