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

[SOLVED] Restoring access to GUI from LAN after “Block Private Networks” was set

Scheduled Pinned Locked Moved General pfSense Questions
28 Posts 5 Posters 2.9k 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.
  • S
    Sergei_Shablovsky
    last edited by Sergei_Shablovsky Nov 13, 2021, 3:56 AM Nov 9, 2021, 10:59 PM

    Dear pfSense Gurus!

    How to restoring access to pfSense GUI from LAN interface after Block Private Networks in “Interface” configuration was set?

    Is that possible to using pfSense PHP Shell the command ?

         $config['system']['disablefilter'] = true;
    

    If I understand official docs correctly, the Block Private Networks create firewall's rule to block any addresses that mean for private networks ( 192.168., etc). So if I temporarily disable fw from local console, I would be able to connect to GUI thru the LAN interface.

    And sub-question are how to check from local console if the incoming access really blocked on LAN and if blocked, which fw rule exactly doing this?

    —
    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
    Help Ukraine to resist, save civilians people’s lives !
    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

    J S 2 Replies Last reply Nov 9, 2021, 11:48 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Sergei_Shablovsky
      last edited by johnpoz Nov 9, 2021, 11:49 PM Nov 9, 2021, 11:48 PM

      @sergei_shablovsky the antilock out rule should allow traffic before that rfc1918 block rule.. Did you also disable the antilock out?

      You can hand the gun on safe, with no bullets even. And users still manage to shoot themselves in the foot ;)

      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.7.2, 24.11

      S 2 Replies Last reply Nov 9, 2021, 11:59 PM Reply Quote 0
      • S
        Sergei_Shablovsky @johnpoz
        last edited by Sergei_Shablovsky Nov 10, 2021, 12:18 AM Nov 9, 2021, 11:59 PM

        @johnpoz said in Restoring access to GUI from LAN after “Block Private Networks” was set:

        @sergei_shablovsky the antilock out rule should allow traffic before that rfc1918 block rule.. Did you also disable the antilock out?

        Of course, the answer is NO
        Before of this I am a little bit disappointed why access on LAN blocked...

        You can hand the gun on safe, with no bullets even. And users still manage to shoot themselves in the foot ;)

        Perfect phrase! I record it on a wall :)
        Just to note, some of users have a bunch of pfSense's installations and other not so smart SysAdmins may be involved in pfSense stable life. ;)

        —
        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
        Help Ukraine to resist, save civilians people’s lives !
        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

        N G 2 Replies Last reply Nov 10, 2021, 1:16 AM Reply Quote 0
        • N
          nimrod @Sergei_Shablovsky
          last edited by Nov 10, 2021, 1:16 AM

          @sergei_shablovsky

          This can happen if you change default port for accessing web interface. Sometimes you have to type full domain or ip address followed by the port. For example:

          https://home.pfsense.arpa:5433
          

          Or

          192.168.1.1:5433
          

          This is assuming that your pfSense box is located at 192.168.1.1 and you changed default port to 5433.

          S 1 Reply Last reply Nov 10, 2021, 9:02 AM Reply Quote 0
          • S
            Sergei_Shablovsky @nimrod
            last edited by Nov 10, 2021, 9:02 AM

            @nimrod said in Restoring access to GUI from LAN after “Block Private Networks” was set:

            @sergei_shablovsky

            This can happen if you change default port for accessing web interface. Sometimes you have to type full domain or ip address followed by the port. For example:

            https://home.pfsense.arpa:5433
            

            Or

            192.168.1.1:5433
            

            This is assuming that your pfSense box is located at 192.168.1.1 and you changed default port to 5433.

            Thank You for suggesting.

            No port changed as I knows.

            —
            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
            Help Ukraine to resist, save civilians people’s lives !
            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

            1 Reply Last reply Reply Quote 0
            • G
              Gertjan @Sergei_Shablovsky
              last edited by Nov 10, 2021, 9:39 AM

              @sergei_shablovsky said in Restoring access to GUI from LAN after “Block Private Networks” was set:

              Of course, the answer is NO

              So, the Anti clock out is present (acivated) (first rule)
              and
              the "Block private networks" rule is also present - on the LAN interface ( 😨 ) ....

              These two still permit access to the GUI from the LAN interface, using port 80 or 443 TCP using a browser, to 'undo' this situation, as, for example, pfSEnse can't do ant 'DNS' any more for your LAN network.

              e1e838aa-abbe-4664-9a4d-9b19c4db2442-image.png

              Really, are there admins out there that activate a "block all RFC1918"(= 192.168.1.0/24 10.0.0. .... and friends) on a LAN type interface ? Maybe there is a valid reason to do so, didn't encounter one yet.
              I'll advise the blue pill, just to be sure.

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

              S 2 Replies Last reply Nov 10, 2021, 10:52 AM Reply Quote 1
              • S
                Sergei_Shablovsky @Gertjan
                last edited by Nov 10, 2021, 10:52 AM

                @gertjan said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                Really, are there admins out there that activate a "block all RFC1918"(= 192.168.1.0/24 10.0.0. .... and friends) on a LAN type interface ? Maybe there is a valid reason to do so, didn't encounter one yet.
                I'll advise the blue pill, just to be sure.

                That’s not my mistake. But I need to solve it. ;)

                —
                CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                Help Ukraine to resist, save civilians people’s lives !
                (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                1 Reply Last reply Reply Quote 0
                • S
                  Sergei_Shablovsky @Gertjan
                  last edited by Nov 10, 2021, 10:55 AM

                  @gertjan said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                  These two still permit access to the GUI from the LAN interface, using port 80 or 443 TCP using a browser, to 'undo' this situation, as, for example, pfSEnse can't do ant 'DNS' any more for your LAN network.

                  As I wrote, now I have only access to local VGA console with pfSense “cheap menu”, and I have no access to GUI.

                  How to solve this problem from VGA console?

                  —
                  CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                  Help Ukraine to resist, save civilians people’s lives !
                  (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                  G 1 Reply Last reply Nov 10, 2021, 10:58 AM Reply Quote 0
                  • G
                    Gertjan @Sergei_Shablovsky
                    last edited by Gertjan Nov 10, 2021, 10:59 AM Nov 10, 2021, 10:58 AM

                    @sergei_shablovsky

                    If it's a recent change, you could :
                    Backup the config first.
                    ( quick and dirty method, will do if the system is still accesible using the console : copy it to a save place like /root/... )

                    Now, use the cheap menu and see what option 15 van do for you.

                    @sergei_shablovsky said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                    But I need to solve it. ;)

                    Yeah, guess you went for the red a while ago.

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

                    J 1 Reply Last reply Nov 10, 2021, 12:48 PM Reply Quote 1
                    • J
                      johnpoz LAYER 8 Global Moderator @Gertjan
                      last edited by Nov 10, 2021, 12:48 PM

                      Your going down the wrong rabbit whole - if you have the antilock out rule there, blocking rfc1918 is not preventing you from access the gui.. You have something else going on. Like the gui not even running or working maybe?

                      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.7.2, 24.11

                      S 1 Reply Last reply Nov 10, 2021, 2:10 PM Reply Quote 0
                      • S
                        Sergei_Shablovsky @johnpoz
                        last edited by Nov 10, 2021, 2:10 PM

                        @johnpoz said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                        gui not even running or working maybe?

                        May be... How to see it in system processes, or by other way ? Because this is Nginx work, right?

                        —
                        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                        Help Ukraine to resist, save civilians people’s lives !
                        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                        J 1 Reply Last reply Nov 10, 2021, 2:17 PM Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @Sergei_Shablovsky
                          last edited by Nov 10, 2021, 2:17 PM

                          @sergei_shablovsky what port is gui listening on?

                          [21.05.1-RELEASE][admin@sg4860.local.lan]/root: sockstat | grep :8443
                          root     nginx      61483 6  tcp4   *:8443                *:*
                          root     nginx      61483 7  tcp6   *:8443                *:*
                          root     nginx      61230 6  tcp4   *:8443                *:*
                          root     nginx      61230 7  tcp6   *:8443                *:*
                          root     nginx      60962 6  tcp4   *:8443                *:*
                          root     nginx      60962 7  tcp6   *:8443                *:*
                          [21.05.1-RELEASE][admin@sg4860.local.lan]/root: 
                          

                          You know you can just reset all of that from the console menu, and even just rollback to previous config.

                          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.7.2, 24.11

                          S 2 Replies Last reply Nov 11, 2021, 4:38 AM Reply Quote 1
                          • S
                            Sergei_Shablovsky @johnpoz
                            last edited by Nov 11, 2021, 4:38 AM

                            @johnpoz said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                            @sergei_shablovsky what port is gui listening on?

                            from default pfSense installation, SHTTP

                            You know you can just reset all of that from the console menu, and even just rollback to previous config.

                            I know, thank You!
                            But the SysAdmins that make reinstall from USB memstick (with Restore from config.xml function), cannot save any configs history. :(

                            —
                            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                            Help Ukraine to resist, save civilians people’s lives !
                            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                            J 1 Reply Last reply Nov 11, 2021, 5:14 AM Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator @Sergei_Shablovsky
                              last edited by Nov 11, 2021, 5:14 AM

                              @sergei_shablovsky not talking about that - just use the restore config feature from console menu

                              configs.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.7.2, 24.11

                              S 1 Reply Last reply Nov 11, 2021, 6:52 AM Reply Quote 0
                              • S
                                Sergei_Shablovsky @johnpoz
                                last edited by Sergei_Shablovsky Nov 11, 2021, 6:52 AM Nov 11, 2021, 6:52 AM

                                @johnpoz said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                                @sergei_shablovsky not talking about that - just use the restore config feature from console menu

                                No any backups exist. Because reinstall by SysAdmin from USB memstick.

                                —
                                CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                Help Ukraine to resist, save civilians people’s lives !
                                (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sergei_Shablovsky @Sergei_Shablovsky
                                  last edited by Nov 11, 2021, 6:54 AM

                                  @sergei_shablovsky said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                                  Is that possible to using pfSense PHP Shell the command ?

                                  We move far away from initial post. ;)
                                  Is this help in my situation?

                                  —
                                  CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                  Help Ukraine to resist, save civilians people’s lives !
                                  (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                  J 1 Reply Last reply Nov 11, 2021, 11:32 AM Reply Quote 0
                                  • S
                                    Sergei_Shablovsky @johnpoz
                                    last edited by Sergei_Shablovsky Nov 11, 2021, 7:19 AM Nov 11, 2021, 7:17 AM

                                    @johnpoz said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                                    what port is gui listening on?
                                    80

                                    And also

                                    sockstat | grep nginx
                                    

                                    give me both 80, 443 for tcp4/tcp6

                                    —
                                    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                    Help Ukraine to resist, save civilians people’s lives !
                                    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      johnpoz LAYER 8 Global Moderator @Sergei_Shablovsky
                                      last edited by Nov 11, 2021, 11:32 AM

                                      @sergei_shablovsky said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                                      Is this help in my situation?

                                      yes because you have console access.. Roll back - but again, if you have antilock out enabled, doesn't matter if you block rfc1918.. Since the antilockout would allow it before that rule would be evaluated.

                                      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.7.2, 24.11

                                      1 Reply Last reply Reply Quote 1
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Nov 11, 2021, 11:20 PM

                                        If you really have no backups there you could just disable pf temporarily, access the gui and remove that. Saving that change will automatically re-enable pf.

                                        You could remove that line from the config file you restored and then restore it again from USB by re-rooting with the USB stick attached.

                                        Steve

                                        S 1 Reply Last reply Nov 12, 2021, 2:12 AM Reply Quote 1
                                        • S
                                          Sergei_Shablovsky @stephenw10
                                          last edited by Sergei_Shablovsky Nov 12, 2021, 2:13 AM Nov 12, 2021, 2:12 AM

                                          @stephenw10 said in Restoring access to GUI from LAN after “Block Private Networks” was set:

                                          If you really have no backups there you could just disable pf temporarily, access the gui and remove that. Saving that change will automatically re-enable pf.

                                          After several messages we come to my initial question:

                                          Is that possible to using pfSense PHP Shell the command ?

                                               $config['system']['disablefilter'] = true;
                                          

                                          for disabling pf temporarily?

                                          You could remove that line from the config file you restored and then restore it again from USB by re-rooting with the USB stick attached.

                                          Which exactly line?
                                          (Sorry my stupidness)

                                          —
                                          CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                          Help Ukraine to resist, save civilians people’s lives !
                                          (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                          G S 2 Replies Last reply Nov 12, 2021, 9:29 AM Reply Quote 0
                                          20 out of 28
                                          • First post
                                            20/28
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received