# Globally accessible ACL

**URL:** <https://discourse.haproxy.org/t/globally-accessible-acl/3024>\
**Category:** Help!\
**Created:** [September 20, 2018, 8:41pm UTC](https://discourse.haproxy.org/t/globally-accessible-acl/3024 "2018-09-20T20:41:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmanno](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/pmanno/32/626_2.png) [@pmanno](https://discourse.haproxy.org/u/pmanno)\
**Post date:** [September 20, 2018, 8:41pm UTC](https://discourse.haproxy.org/t/globally-accessible-acl/3024/1 "2018-09-20T20:41:52Z")

</div>

Hi All,

Working on a solution for a maintenance page based upon:

[https://gist.github.com/sts/62d8dd59221ab68661aa](https://gist.github.com/sts/62d8dd59221ab68661aa)

This works really well, but I want to have a SINGLE acl apply to multiple listen/frontend blocks. That way, instead of doing a:

```
echo "add acl #0 0.0.0.0/0" | nc -U <socket>

```

On every acl instance, I could do it once and have every block see it. Does anyone know if this is possible?

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![pmanno](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/pmanno/32/626_2.png) [@pmanno](https://discourse.haproxy.org/u/pmanno)\
**Post date:** [September 20, 2018, 9:14pm UTC](https://discourse.haproxy.org/t/globally-accessible-acl/3024/2 "2018-09-20T21:14:27Z")

</div>

Nevermind! Managed to get it working with maps:

```
acl web_maintenance src,map_ip(/etc/haproxy/web_maintenance.txt) -m str 1
acl web_maintenance_ex src,map_ip(/etc/haproxy/web_maintenance_ex.txt) -m str 1

use_backend web_maintenance if web_maintenance !web_maintenance_ex
```
