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

    HAproxy ACL host-regex match any IP address

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 1.3k 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.
    • A
      aracloud
      last edited by aracloud

      Hi,

      On my pfSense I use HA Proxy in HTTP mode and configured an ACL as follows:

      ip_regex
      Host regex:
      no
      no
      \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
      

      The action is as follows:

      Use Backend
      See below
      ip_regex
      

      If I request the page via http://<ip-address> I get back a "503 Service Unavailable" ??

      The same analogy with "Host matches" for an FQDN works perfectly.

      Can someone give me a hit pls?

      Thx

      P 1 Reply Last reply Reply Quote 0
      • P
        PiBa @aracloud
        last edited by PiBa

        @aracloud
        using https? and certificate acl's checkbox set ?

        -edit-
        uh sorry you Already mention using http..

        check that the browser is actually sending a Host header ?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.