Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The acl of haproxy is not related to OR

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report