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

    Nat stop working after certificate renewal

    Scheduled Pinned Locked Moved Firewalling
    18 Posts 5 Posters 249 Views 3 Watching
    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.
    • N Offline
      nirmelamoud @Bob.Dig
      last edited by

      @Bob.Dig no haproxy

      1 Reply Last reply Reply Quote 0
      • N Offline
        nirmelamoud
        last edited by

        The client's browser has a white page with nothing but "access denied."
        The system log shows" Aug 21 19:21:40 WAN Default deny rule IPv4 (1000000103)"

        but I do have a NAT rule that was working few days ago, for specific IP addresses, to allow them in
        all of them stop working (without client IP change)

        Im not sure the certificate is related of course, but that's the only change I made, right before it stopped working
        The router UI is working

        I use direct DNS rules in CloudFlare (so the port will work as its not a standard port) but its not related to CloudFlare as even if the browser go to my direct IP , I see the same behavior

        any idea how I Can debug this , find why the rules been passed through ?

        the rule is basically single host - specific IP, from to port (both other -- both 8200) redirect to internal IP, same other port 8200
        nat reflection - default

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ Online
          johnpoz LAYER 8 Global Moderator @nirmelamoud
          last edited by johnpoz

          @nirmelamoud said in Nat stop working after certificate renewal:

          The client's browser has a white page with nothing but "access denied."

          That is not what would happen with a firewall block.. Even with a redirection.

          So here are the 2 different blocks - a just block, ie firewall just ignores the traffic.

          timeout.jpg

          And then here is a actual reject where the firewall sends a response saying hey you can't get there..

          reject.jpg

          For browser to say access denied, the only way it should really know that is if the webserver trying to talk said hey buddy sorry your not allowed, which would be a 403 error.

          So not exactly sure what is going on, but would follow standard port forwarding troubleshooting..

          Here is how chrome shows it

          chrome.jpg

          What browser are you using? But a access denied would come from the webserver or a proxy, not a firewall even with a reject.

          Are you forwarding this traffic to some internal proxy you are running?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            nirmelamoud @johnpoz
            last edited by

            @johnpoz THANKS for the detailed respone,
            my rounter fw it to another router that fw it to a web server
            I do not see the traffic in the internal router
            I see the rule on the external router that say it block the traffic , so I do not think it passed the fw
            agree I do not understand why I see access denied

            I used edge and chrome (on windows, and chrome on android phone)

            I do have pfblockgerNG on, but dont think its involved, it is blocking mainly other countries

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan @nirmelamoud
              last edited by

              @nirmelamoud said in Nat stop working after certificate renewal:

              I see the rule on the external router that say it block the traffic , so I do not think it passed the fw

              pfSense is the internal router or the external ?

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

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                nirmelamoud @Gertjan
                last edited by

                @Gertjan pfsense is the external

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ Online
                  johnpoz LAYER 8 Global Moderator @nirmelamoud
                  last edited by johnpoz

                  @nirmelamoud again troubleshoot the problem.. If traffic from outside hits your pfsense wan and is blocked by the default rule, then your rules are not right, they didn't load?

                  Do you have rules in floating? Lets see your port forward rules and the rules you have on pfsense wan..

                  None which would have anything to do with renewing the web gui certificate.

                  edit: btw if hit IP you talked to the forum with on just http (port 80) stuff is served - looks like some pictures. https times out.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    nirmelamoud @johnpoz
                    last edited by

                    @johnpoz no floating rules, all rules
                    all these nat rules are https , I do have one HTTP rule, and its working.
                    I do not see any https timeout anywhere is the logs,

                    any command line trick (or logs to look at) to see if NAT rules not loaded (although I see them on the NAT table) ?

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ Online
                      johnpoz LAYER 8 Global Moderator @nirmelamoud
                      last edited by johnpoz

                      @nirmelamoud do a cat /tmp/rules.debug

                      Here is how you can see the full ruleset

                      https://docs.netgate.com/pfsense/en/latest/firewall/pf-ruleset.html

                      You can always reload them and look at the output.

                      Status / Filter reload

                      What rules I see no rules posted - all rules tell me nothing..

                      https timeout anywhere is the logs,

                      Why would you think you should see anything of the sort in the logs.. I already went over this is great detail. A timeout in your browser is if pfsense blocked the traffic..

                      if you want any help your going to have to give us something to look at to see if we can spot where the problem is..

                      example

                      rules.jpg

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        nirmelamoud @johnpoz
                        last edited by

                        @johnpoz
                        thanks I see all the rules in the command prompt , as I said there is no timeout on browser I See access denied (its 403)

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ Online
                          johnpoz LAYER 8 Global Moderator @nirmelamoud
                          last edited by

                          @nirmelamoud said in Nat stop working after certificate renewal:

                          I See access denied (its 403)

                          There is no possible way pfsense could do that - and when I go to the IP and see your website with pictures via https - I just get a timeout I get no 403, a 403 is telling you you can't got there.. Not the firewall.

                          And if your seeing traffic to 443 blocked in the logs - why/how could it be sending a 403??? You understand when you block in a firewall all it does is ignore the traffic.. So your client just never gets an answer.

                          If you are not going to actually show us your rules, rule order matters, maybe you have it set for udp or something, nor do any off the basic port forwarding troubleshooting that takes all of 30 seconds tops to do - nobody is going to be able to help you..

                          Go to can you see me . org - send traffic.. Sniff on your wan do you see the traffic come in.. Do you see any sort of response, ie a Syn,ACK?

                          If you see no response, now sniff on the lan side do the same test do you see pfsense send on the traffic.. If you do then pfsense did its thing whatever is not working for you has zero to do with pfsense.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

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