1
Web Proxy Filtering and Caching / Re: [SOLVED] HAProxy IP Based ACL
« on: August 28, 2022, 10:03:59 pm »Code: [Select]
# Backend: filemanager_backend (File Browser)
backend filemanager_backend
# health checking is DISABLED
mode http
balance source
# stickiness
stick-table type ip size 50k expire 30m
stick on src
# tuning options
timeout connect 30s
timeout server 30s
# ACL: ipIsInLocalNetwork_condition
acl acl_630bb0033adfc2.41301877 src 10.1.1.0/8
# ACTION: ipIsInLocalNetwork_rule
http-request deny if !acl_630bb0033adfc2.41301877
http-reuse safe
server filemanager_server 10.1.1.10:8000
Another solution where you don't have to deal with booleans