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

    Unable to Access WebConfigurator UI and Unable to SSH into pfsense

    Scheduled Pinned Locked Moved General pfSense Questions
    27 Posts 5 Posters 3.7k 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.
    • D
      dougs
      last edited by

      Running 2.7.2 for a couple weeks with no issue until a day or two when I noticed that I could not access the WebConfigurator UI nor could I ssh into pfsense. All of the internal users are not affected- all of us can browse the Internet. This came up when I wanted to add an IP address exclusion to pfBlockerNG.

      I've restarted the WebConfigurator from the console as well as PHP-FGM. No luck. Also restarted the pfsense box- no dice.

      I did see a few days ago that my LetEncrypt certificate failed to renew with roughly three weeks to go. I figured I'd take care of it soon. Does that have anything to do with what's happening here?

      I find it strange that not only am I unable to access the Web UI but I cannot ssh into it....

      Advice?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        A cert issue would not prevent you SSHing. Is the ssh server enabled? You were able to SSH in previously?

        You can check the logs from the command line. I would try to see if the firewall is blocking the connections or if the system log shows errors when you try to start the services.

        1 Reply Last reply Reply Quote 0
        • D
          dougs
          last edited by

          Yes, I was able to access sshd previously. The console indicates that sshd is running.

          Went through the logs and nothing stands out. Before I reset to default and restore from a backup, is there anything else I should look at?

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

            @dougs if console shows running.. did you try another IP, its possible you blocking or removed the antilock out rule? You could look back through your config changes via console and rollback, or try a different IP, like pfsense wan IP..

            if your on the console can you access ssh or webgui via cmd line, if so then points to a firewall rule blocking..

            So for example, can you do say something like this.

            ssh.jpg

            That shows you that ssh is running and responding, so if you can not get there from a client points to a firewall sort of issue.

            Same goes with webgui, you can use curl - do you get a response at all? Using the port your webgui listens on, mine is on 8443 for example

            www.jpg

            As to rolling back a config change

            config.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 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              You might also have something dynamic blocking you like Snort/Suricata or some pfBlocker update that pulled in a bad list.

              1 Reply Last reply Reply Quote 1
              • D
                dougs
                last edited by

                I was able to ssh into the firewall from the console as described above. I also was able to get a response using the curl command as described above.

                Yes, pfBlockerNG and Suricata are running on this firewall although Suricata is not in the blocking mode.

                I see that there is a command in the console menu (#15) to restore from a previous configuration backup. However, when I list these backups I can only see the last 7 backups and these are one hour apart starting about an hour and 15 minutes ago. How can I see the rest of the 30 backups? The reason for each of the 7 most recent backups that I could see on the screen is "pfblockerNG: saving Unbound custom options". This leads me to suspect there might be something wonky going on with pfblockerNG...

                johnpozJ S 2 Replies Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @dougs
                  last edited by

                  @dougs yeah pfblocker loves to do that - I keep meaning to look into a way to stop it, or change how often it does it.. Part of the reason I changed my number to 100 hehehe

                  I would consider an update to items in a list or alias to be a config change.. That it makes constant changes to your config backup could be problematic for sure, especially when they happen often.. If it was once a day, or only when you actually interacted with the config via the pfblocker gui, etc.

                  If you have the antilock out rule enabled, it should be impossible for pfblocker to create a rule that would lock you 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 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • D
                    dougs
                    last edited by

                    There's an anti-lockout rule in place so I shouldn't be locked out. However, I am!

                    I haven't made any changes to pfblockerNG in days.

                    It looks like I might need to do a reset to defaults and restore from a backup, yes? I'm fine with doing that as long there isn't any other easier way of remedying this! I just have to work around my wife! She thinks everything is fine as long as she has a working Internet connection! :)

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Yup the anti-lockout rule should apply before anything pfBlocker does if it's present.

                      1 Reply Last reply Reply Quote 0
                      • D
                        dougs
                        last edited by

                        How can I verify if the anti-lock out rule is in effect or not from the console?

                        1 Reply Last reply Reply Quote 0
                        • D
                          dougs
                          last edited by dougs

                          I'm reviewing this page: https://docs.netgate.com/pfsense/en/latest/troubleshooting/locked-out.html

                          If I enable WAN access to the firewall as follows: #pfSsh.php playback enableallowallwan, would this still require that one authenticate in order to access the Web GUI? I don't want to open the door to the whole wide world if such authentication isn't needed!

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            SteveITS Galactic Empire @dougs
                            last edited by

                            @dougs Yes it still needs the password.

                            To be clear the anti lockout rule is a firewall rule...it controls whether the client can connect to the web server or not, not whether one can log in. If you see an SSH prompt or web page then the firewall isn't blocking you.

                            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
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Yes you still have to authenticate but doing that adds pass rules on the WAN which you probably don't want as you say.

                              Try running: pfctl -vvsr | grep -A 4 anti
                              That will show you if the antilock rules are present and if they are opening states and passing packets.

                              You can add a pass rule to LAN using easyrule if you have to.
                              https://docs.netgate.com/pfsense/en/latest/firewall/easyrule.html

                              Do you use policy routing at all? With gateways set on the rules? That can end up bypassing the firewall itself.

                              1 Reply Last reply Reply Quote 0
                              • D
                                dougs
                                last edited by

                                Running "pfctl -vvsr | grep -A 4 anti" gave me this: https://imgur.com/a/fgXHIEx Looks like the anti-lock out rule is in effect, yes?

                                I tried:

                                #easyrule pass lan tcp <my computer IP addr> <firewall LAN addr> 443
                                

                                Didn't work for both Web GUI and ssh . Is this easyrule only for WAN addresses?

                                I'm not familiar with policy routing so I would imagine it's not being used here.

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

                                  @dougs said in Unable to Access WebConfigurator UI and Unable to SSH into pfsense:

                                  I'm not familiar with policy routing so I would imagine it's not being used here.

                                  Did you have rules with a gateway selected, or is the gateway just an *

                                  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 24.11 | Lab VMs 2.8, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dougs
                                    last edited by

                                    Not sure. I might have had an alias pointing to the firewall and used that in some rules instead of an asterisk. We use only one ISP so one gateway.

                                    johnpozJ 1 Reply Last reply Reply Quote 0
                                    • S
                                      SteveITS Galactic Empire @dougs
                                      last edited by

                                      @dougs said in Unable to Access WebConfigurator UI and Unable to SSH into pfsense:

                                      The reason for each of the 7 most recent backups that I could see on the screen is "pfblockerNG: saving Unbound custom options". This leads me to suspect there might be something wonky going on with pfblockerNG

                                      Pretty sure it saves a new config every time an update runs. (I would think, because it's regenerating rules)

                                      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
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator @dougs
                                        last edited by

                                        @dougs said in Unable to Access WebConfigurator UI and Unable to SSH into pfsense:

                                        We use only one ISP so one gateway.

                                        Talking about your lan side rules, do you have say your wan_dhcp selected?

                                        example..

                                        policyroute.jpg

                                        See where the gateway is called out - that would be policy routing.

                                        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 24.11 | Lab VMs 2.8, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dougs
                                          last edited by

                                          I don't believe we manipulate the gateway address in that fashion.

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

                                            @dougs said in Unable to Access WebConfigurator UI and Unable to SSH into pfsense:

                                            I don't believe

                                            Prob behoove you to double check, you never know what gets set sometime - I agree normally you wouldn't have this set unless you had a specific reason. But you would be surprised how many posts end up being they are doing PBR is the cause they can't get some other vlan, etc.

                                            And even if you were doing it, it shouldn't prevent access with antilock which would be evaluated first.

                                            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 24.11 | Lab VMs 2.8, 24.11

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