Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The acl of haproxy is not related to OR

Shulou Source: shulou.com Published: 2022-06-01 09:51:38 11月26日 Update

When defining multiple acl, sometimes multiple conditions are needed to combine

Acl is_www hdr_beg (host)-I www.51yunv.com

Acl is_dns src 116.211.121.0/24 218.65.212.0/24

In normal writing, a single condition:

Use_backend www if is_www

Or the way to write:

Use_backend www if is_www | | is_dns

The way and is written

Use_backend www if is_www is_dns

Use_backend www if is_www! is_dns

The writing of "not":

Use_backend www if! is_dns

Tags: Writing multiple conditional single sometimes combination Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker MySQL NVidia vpn