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

    Help me create a smart dynamic ACL & Action

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 210 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.
    • P
      planetinse
      last edited by planetinse

      Reaching out to the masterminds of HAproxy addon.

      Today i have ACL rules (repeated >100 times) like this in my frontend;

      ACL
      subdom1 IF ssl_fc_sni -i subdom1.domain.com
      subdom2 IF ssl_fc_sni -i subdom2.domain.com
      subdom3 IF ssl_fc_sni -i subdom2.domain.com

      Action
      subdom1 use backend bk_subdom1
      subdom2 use backend bk_subdom2
      subdom3 use backend bk_subdom3
      default use bk_default

      Can I somewhat use the subdomain name dynamically to address the backend, so instead of 100 rows I will have one single row, and just manage this by adding new backends.

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