基于acl 可以让haproxy 支持强大的访问控制以及流程处理,以下是一个简单的基于tcp-request 进行4层ip白名单的处理 参考配置 环境准备 version: '3' services: haproxy: image: haproxytech/haproxy-debian:2.5.0