haproxy multiple acl using the same name
Asked Answered
B

1

7

I am in the middle of writing a new config for HAProxy - What I want to do is this.

acl ccbill src 64.38.212.0/24
acl ccbill src 64.38.215.0/24
acl ccbill src 64.38.215.0/24
acl ccbill src 64.38.215.0/24
use_backend admin-chat if ccbill

I am just curious if you can set an acl like this using the same name for multiple IP's

Thanks

Bedridden answered 10/1, 2015 at 18:2 Comment(0)
F
11

Yes you can. HAProxy will process a logical OR between each ACL.

Fuddyduddy answered 12/1, 2015 at 19:6 Comment(2)
I just noticed the edit to this... so do I need to put "OR" between each subnet or keep it as I put up top?Bedridden
No, you don't - it's assumed.Boomerang

© 2022 - 2024 — McMap. All rights reserved.