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

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

Scheduled Pinned Locked Moved Cache/Proxy
3 Posts 2 Posters 819 Views
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 Feb 16, 2023, 10:59 AM

    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 Feb 16, 2023, 11:11 AM Reply Quote 0
    • V
      viragomann @wgold
      last edited by Feb 16, 2023, 11:11 AM

      @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 Feb 16, 2023, 11:19 AM

        Awesome! Thank you!

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received