Score:0

HA-Proxy http-request deny for several ACLs

cn flag

I want to restrict access to some domains in my HAProxy, actually, I already did but I want to improve the settings. This what I have:

acl network_allowed src 22.33.44.55/32

acl acl-public-domain hdr(host) -i public-domain.com
acl acl-internal-domain1 hdr(host) -i internal-domain1.com
acl acl-internal-domain2 hdr(host) -i internal-domain2.com

http-request deny if acl-internal-domain1 !network_allowed
http-request deny if acl-internal-domain2 !network_allowed

use_backend ...

I tried http-request deny if acl-internal-domain1 || acl-internal-domain2 !network_allowed, but that doesn't work. Can I simplify that somehow? Any suggestion is appreciated. Thanks in advance

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.