Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    I'd like to combine different ACLs and order them in HAProxy

    Cache/Proxy
    2
    3
    378
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wgold last edited by

      Re: HAProxy actions order

      I'd like to configure a web frontend (IP-Port) with a set of backends based on hostnames:
      Host starts with otto -> Use backend otto
      fred -> fred
      ...
      Then I would like to restrict some of the servers to a list of SRC adresses and I assumed that this is somehow possible by ordering the ACL or the action list.
      Obviously, the ordering still has no effect whatsoever, which means that I need to configure a different frontent with a different IP to implement client based ACL.
      Which seems to be highly unfortunate.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @wgold last edited by

        @wgold
        State both ACLs in the actions ACL box, separated by a space, so both are required (AND).

        1 Reply Last reply Reply Quote 1
        • W
          wgold last edited by

          Awesome! Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post