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

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

                              https://imgur.com/a/fgXHIEx

                              Yes that shows the anti-lockout rules are present on LAN. But also that they have passed nothing; 0 bytes/packets/states.

                              So either some other rule is passing them. Somehow. Or maybe the traffic never reaches pfSense. Or perhaps it's being forwarded.

                              You could try running a tcpdump from the CLI while you try to connect to confirm it's at least trying.

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

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

                                CLI while you try to connect to confirm it's at least trying

                                could be sending it to something else.. sniff is yeah what I would do - have access to console, sniff on pfsense itself to validate traffic gets there.

                                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 1
                                • D
                                  dougs
                                  last edited by

                                  About a week ago, I decided to reset the pfSense firewall to factory defaults from the console menu and left it running without changing any configuration options aside from setting the WAN/LAN interfaces, modifying the console dashboard and creating a DHCP server IP address range. Everything else was left as is.

                                  I was able to access the Web GUI for a couple days. Just 2 days ago, I discovered I could not access it nor could I ssh into it!

                                  Restarting the Web Configurator does not allow me to access the firewall web site.

                                  Executing pfctl -vvsr | grep -A 4 anti shows this:
                                  PXL_20240114_163414107_2024-01-14_08-40-18.jpg
                                  https://imgur.com/a/J2mbVCx

                                  Tried running: #easyrule pass lan tcp <my computer IP addr> <firewall LAN addr> 443 and it states the rule was successfully created. However, I cannot access the LAN address of the firewall nor could I ping it from the computer IP address. Tried it from another computer with similar results.

                                  Did a zpool scrub pfSense and did not indicate any errors.

                                  Every system on the LAN side can access the Internet normally-- including our Samsung TV sets and an Enphase IoT device among others.

                                  This is on an older Protectli FW6C purchased in 2021. https://protectli.com/wp-content/uploads/2019/01/FW6C-Datasheet-190104.pdf

                                  At this point, I am not sure what else to do aside from reformatting the drive and starting all over again. Please advise.

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

                                    @dougs and no simple tcpdump?

                                    You could have no rules and completely wide open, still never works if your traffic never gets there..

                                    Your anti lock rule is there.. don't show any states.. Do a simple tcpdump when you try and get there..

                                    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

                                      Mmm, that sure starts to look like it's just not hitting pfSense at all.

                                      NollipfSenseN 1 Reply Last reply Reply Quote 0
                                      • NollipfSenseN
                                        NollipfSense @stephenw10
                                        last edited by

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

                                        Mmm, that sure starts to look like it's just not hitting pfSense at all.

                                        Yes, sounds like possibly a bad cable...

                                        pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                        pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

                                          Since traffic can still reach external sites I'd say more likely a rogue dhcp server.

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