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

Limiters break ACME LetsEncrypt renewal/account key registration

Traffic Shaping
4
16
1.6k
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.
  • J
    jimp Rebel Alliance Developer Netgate
    last edited by Feb 3, 2022, 1:33 PM

    There isn't a general issue with that or it would be failing for me as well, and it's working fine here. It's possible your floating rules on WAN are matching more than they should.

    Check your setup against this doc instead of that thread:

    https://docs.netgate.com/pfsense/en/latest/recipes/codel-limiters.html

    A much more common cause of failure is that in certain cases ACME will fail to reach the LE servers over IPv6, but IPv4 works fine. Usually it's a local IPv6 configuration problem as well, though the easiest general fix is to set the option under advanced options to make the firewall prefer IPv4.

    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

    Need help fast? Netgate Global Support!

    Do not Chat/PM for help!

    B 2 Replies Last reply Feb 3, 2022, 3:37 PM Reply Quote 0
    • B
      bartkowski @jimp
      last edited by Feb 3, 2022, 3:37 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • B
        bartkowski @jimp
        last edited by bartkowski Feb 3, 2022, 3:55 PM Feb 3, 2022, 3:50 PM

        @jimp Thanks for replying.
        I do have several floating rules (from pfBlockerNG-devel, and a couple manual rules for ICMP workaround from that giant thread), however, if I disable that one rule, ACME renewals start working again.

        I don't use IPv6 and have prefer IPv4 checked in advanced options.

        I followed the linked doc and the main difference from what I had is: Action match vs pass, and Source ANY vs WAN address, and Gateway: Default vs "Must be set to the gateway for this WAN interface".

        I made changes to mimic the document and ACME renewal/key registration still fails unless I disable this rule.

        Here is my thread on Let's Encrypt forum. Someone mentioned the curl POST was failing.
        I have the full log posted there.

        G 1 Reply Last reply Feb 3, 2022, 4:20 PM Reply Quote 0
        • G
          Gertjan @bartkowski
          last edited by Feb 3, 2022, 4:20 PM

          @bartkowski

          These rules :

          login-to-view

          right ?

          Btw : as I have two WAN type interfaces,
          one called WAN_DHCP which is a IPv4 only connection to my upstream ISP router
          the other called HE_TUN_TUNNELV6, this is my IPv6 interface.
          So, instead of 3 rules I have 6, one for each "WAN" set.

          The ICMP ('ping') are pas rules. All the others, the last are (must be !) 'match' rules.

          The "Source" is always "any".

          When the :

          login-to-view

          then the Gateway is set to Default.

          This changes when the direction is set to "out" !! The gateway has to be set to the correct WAN type interface.

          That's why you see "WAN_DHCP" and "HE_TUN_TUNNELV6" in my image / gateway column.

          As already said, these 6 rules are present on my pfSense for many years.
          As is acme.sh : I have my certs renewed every 30 days.
          I didn't change any (floating) rules for ...... a very long time.
          It was working fine using 2.4.5 and before - and 2.50 and 2.5.2 CE today.

          Btw : there was an issue / pitfall shown lately on the forum.
          It's easy to trigger :
          Install pfBlockerNG-devel first. This, by itself, is completely harmless.
          Activate a feed that blocks IP and/or domain names used by what is used to renew "letsencrypt" certificates - or who ever acme.sh is using to renew certs (this is new to me - dono of the pfSense acme.sh also contains this new choice of CA).
          Apparently, the issue was that people activate IP and DNSBL feeds without checking them.
          Or, at least, during the first several days : checking if the new feeds 'triggers' - and who, like what device, triggers it, etc.
          Feeds are free, and this doesn't mean they are perfect - or not just plain broken.
          " an admin always has to double check - even the things he doesn't know about - the latter should be triple checked. "

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          B 1 Reply Last reply Feb 3, 2022, 4:43 PM Reply Quote 0
          • B
            bartkowski @Gertjan
            last edited by Feb 3, 2022, 4:43 PM

            @gertjan Yes, those rules.

            I thought that changing the Protocol from ANY to TCP/UDP for the 'out' rule is going to do the trick, but no, it still fails.

            Doesn't your setup contradict the document jimp linked, namely the "match" vs "pass" in floating rule for WAN out?

            G 1 Reply Last reply Feb 3, 2022, 5:32 PM Reply Quote 0
            • G
              Gertjan @bartkowski
              last edited by Gertjan Feb 3, 2022, 5:33 PM Feb 3, 2022, 5:32 PM

              @bartkowski said in Limiters break ACME LetsEncrypt renewal/account key registration:

              Doesn't your setup contradict ....

              Yep.
              I actually just discovered this new ? pfSEnse documentation page : https://docs.netgate.com/pfsense/en/latest/recipes/codel-limiters.html
              Great ! Finally some good info from a source that doesn't need the 'fact check mode' to be set at 100 %. Thanks, jimp.

              I was pretty sure - reading the thread where I saw (to) many step by step how-toos - that it should be "match" and not "pass". Not that I understand the real difference between the two of them. I "thought" that "match" was the one to use as it is used to force traffic though a given gateway - using the supplied limiters, the up and own codel queues. This is my 'in brain' explanation ;)
              I changed my 2 (2 + 2 actually) to "pass" instead of "match" and did a test on my favorite http://www.dslreports.com/speedtest test. The result was the same or slightly better.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              S 1 Reply Last reply Feb 3, 2022, 7:43 PM Reply Quote 0
              • S
                SteveITS Galactic Empire @Gertjan
                last edited by Feb 3, 2022, 7:43 PM

                @gertjan A match rule will match and queue traffic without blocking or passing it, meaning a pass rule would allow traffic. Ergo, just be careful a pass rule isn't allowing traffic you don't want to allow.

                Match is also "last match wins" by default as noted on that page, in the Quick section.

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                1 Reply Last reply Reply Quote 0
                • B
                  bartkowski
                  last edited by Feb 3, 2022, 7:56 PM

                  I switched the In / Out pipe queue order around in my WAN>out rule, and I was able to get ACME to register account key, but of course the result of Download was now matching my upload speed (I have 300/10 from Comcast) set by the WANOut_Q limiter queue (10500 Kbit/s).

                  B 1 Reply Last reply Feb 3, 2022, 8:19 PM Reply Quote 0
                  • B
                    bartkowski @bartkowski
                    last edited by Feb 3, 2022, 8:19 PM

                    Side note: I managed to crash my pfSense while changing some parameters on the Limiter, while also switching back to Kbit/s from Mbit/s.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bartkowski
                      last edited by Feb 16, 2022, 4:12 PM

                      In preparation for 22.01 update, I discovered that my Auto Config Backups were not being created. To my surprise, disabling my shaper rule allowed the backup to complete. What could this be?!

                      G 1 Reply Last reply Feb 16, 2022, 4:19 PM Reply Quote 0
                      • G
                        Gertjan @bartkowski
                        last edited by Gertjan Feb 16, 2022, 4:29 PM Feb 16, 2022, 4:19 PM

                        @bartkowski said in Limiters break ACME LetsEncrypt renewal/account key registration:

                        What could this be?!

                        That's what I was asking myself the entire afternoon.
                        Updated @home (virtual machine) to pfSense CE 2.6.0 : RAS.
                        @work : unbound ..... to use simple words : refuses to resolve ....
                        Switching to a pfSense minmal default config : all was fine. So, nice, its something in my setup.
                        [ ..... 2 hours later .... ]

                        It looks like my limiters and/or floating firewall rules that uses these limiters are the issue.

                        I ditched them (floating rules first, then my limiters). pfSense was now fine.

                        I re reconstructed the limiters as per https://docs.netgate.com/pfsense/en/latest/recipes/codel-limiters.html

                        Added a firewall (just one ?) as per instruction son the same page.
                        I wasn't looking at the console but pfSense was rebooting - that's the first time for me in years.
                        I investigating.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        B 2 Replies Last reply Feb 16, 2022, 4:33 PM Reply Quote 0
                        • B
                          bartkowski @Gertjan
                          last edited by Feb 16, 2022, 4:33 PM

                          @gertjan said in Limiters break ACME LetsEncrypt renewal/account key registration:

                          I wasn't looking at the console but pfSense was rebooting

                          Did you crash? That's what happened to me if you read an earlier post, just unexpectedly.

                          1 Reply Last reply Reply Quote 0
                          • B
                            bartkowski @Gertjan
                            last edited by Mar 9, 2022, 9:11 PM

                            Hey @gertjan, have you figured out anything?
                            I'm still scratching my head - I have two services that fail to work: ACME and Auto Backup.

                            G 1 Reply Last reply Mar 10, 2022, 10:49 AM Reply Quote 0
                            • G
                              Gertjan @bartkowski
                              last edited by Mar 10, 2022, 10:49 AM

                              @bartkowski
                              Noop.
                              Not using limiters right now.
                              "They" know the issue exists, something good will come out ... soon ...

                              No "help me" PM's please. Use the forum, the community will thank you.
                              Edit : and where are the logs ??

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