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

Add ACL for certificate CommonName

Scheduled Pinned Locked Moved pfSense Packages
3 Posts 2 Posters 488 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.
  • C
    coreybrett
    last edited by Feb 23, 2024, 6:35 AM

    What is the purpose of the "Add ACL for certificate CommonNamen." setting in an HAProxy frontend ?

    V 1 Reply Last reply Feb 23, 2024, 12:44 PM Reply Quote 0
    • V
      viragomann @coreybrett
      last edited by Feb 23, 2024, 12:44 PM

      @coreybrett
      As the hint there "host header matches the "CN" of the certificate" tells you, if this is checked it adds an ALC to limit the access to the host name according the common name in the SSL certificate.

      Note, if you have a SAN certificate, you also need to check "Add ACL for certificate Subject Alternative Names" if the above is enabled to pass all covered domains.

      These ACLs are also applied to none-SSL traffic, if the frontend allows this as well.

      C 1 Reply Last reply Feb 23, 2024, 10:13 PM Reply Quote 0
      • C
        coreybrett @viragomann
        last edited by Feb 23, 2024, 10:13 PM

        So checking those boxes, adds these lines to the generated config

        acl			aclcrt_https-edge	var(txn.txnhost) -m reg -i ^edge\.117pd\.xxx\.us(:([0-9]){1,5})?$
        acl			aclcrt_https-edge	var(txn.txnhost) -m reg -i ^bbc-911\.xxx\.us(:([0-9]){1,5})?$
        acl			aclcrt_https-edge	var(txn.txnhost) -m reg -i ^bbc-revere\.xxx\.us(:([0-9]){1,5})?$
        acl			aclcrt_https-edge	var(txn.txnhost) -m reg -i ^flasktestapp\.xxx\.us(:([0-9]){1,5})?$
        http-request set-var(txn.txnhost) hdr(host)
        use_backend flasktestapp_ipvANY  if   aclcrt_https-edge
        

        This line

        use_backend flasktestapp_ipvANY  if   aclcrt_https-edge
        

        Is only added if a default backend is selected.

        If I have a backend for each of these hostnames, it seems that I still need to create an ACL for each to use for backend selection.

        So I guess I still don't see the point of checking those boxes and creating the aclcrt_https-edge acl .

        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