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

ACLs' precedence

Cache/Proxy
2
5
487
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.
  • S
    senseivita
    last edited by Oct 18, 2020, 4:28 AM

    Which way directives take precedence when they conflict on different sections, e.g;

    • If there's a http-response set-header Cache-Control must-revalidate rule on a front end.
    • For 1-2 backends this is not desired, instead http-response set-header Cache-Control "public, max-age" or some other header would fit best, so,
    • It's added on the backend.

    This wouldn't work would it? What layer has higher precedence using http-response directives? I'm trying to picture it so I can understand it better but every time I start reading I quickly get sidetracked into the http-request directive and others completely unrelated, I forget what I was doing and I don't even notice until hours later when I close enough tabs to land on the HAProxy unfinished config again. 🤕

    I'm avoiding creating another frontend but it seems that I'll have no option.

    Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

    1 Reply Last reply Reply Quote 0
    • D
      dragoangel
      last edited by dragoangel Oct 26, 2020, 12:06 AM Oct 26, 2020, 12:05 AM

      What you speaking isn't ACL, they are actions. If you want to have specific action on condition simply use it with ACL. F.E.: acl example.com host=example.com is acl and action set-header foo=bar if example.com

      Latest stable pfSense on 2x XG-7100 and 1x Intel Xeon Server, running mutiWAN, he.net IPv6, pfBlockerNG-devel, HAProxy-devel, Syslog-ng, Zabbix-agent, OpenVPN, IPsec site-to-site, DNS-over-TLS...
      Unifi AP-AC-LR with EAP RADIUS, US-24

      1 Reply Last reply Reply Quote 0
      • S
        senseivita
        last edited by senseivita Oct 28, 2020, 2:28 PM Oct 28, 2020, 2:26 PM

        Oh yeah, I just got that my bad.

        But wait a minute though, are you saying I can apply more than one action per ACL in the same frontend?! The way I was doing it was as a whole in the advance options because I thought the actions were/is only 1 per ACL and since the advanced section applies to all, 1+1…

        I'm going to be anxious waiting for email now bc I'll lose my **** as it will remove one level of loops from my setup if it's true. 😃

        Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

        D 2 Replies Last reply Oct 29, 2020, 12:31 AM Reply Quote 0
        • D
          dragoangel @senseivita
          last edited by Oct 29, 2020, 12:31 AM

          @skilledinept you can create ACL on frontend/backend and use this ACL at any Action in side same frontend/backend. You can create ACL at shared frontend and use it in child frontend. You can use Action which will run when multiply ACL must be satisfied or one of ACLs will. Please read how HAproxy works ;)

          p.s. You can create Action with IF {No need to create ACL, I describe my IF HERE} also

          Latest stable pfSense on 2x XG-7100 and 1x Intel Xeon Server, running mutiWAN, he.net IPv6, pfBlockerNG-devel, HAProxy-devel, Syslog-ng, Zabbix-agent, OpenVPN, IPsec site-to-site, DNS-over-TLS...
          Unifi AP-AC-LR with EAP RADIUS, US-24

          1 Reply Last reply Reply Quote 0
          • D
            dragoangel @senseivita
            last edited by Oct 29, 2020, 12:31 AM

            @skilledinept here is good article: https://cbonte.github.io/haproxy-dconv/

            Latest stable pfSense on 2x XG-7100 and 1x Intel Xeon Server, running mutiWAN, he.net IPv6, pfBlockerNG-devel, HAProxy-devel, Syslog-ng, Zabbix-agent, OpenVPN, IPsec site-to-site, DNS-over-TLS...
            Unifi AP-AC-LR with EAP RADIUS, US-24

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