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

Can't login to GUI

Scheduled Pinned Locked Moved General pfSense Questions
45 Posts 5 Posters 2.5k 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
    stephenw10 Netgate Administrator
    last edited by Aug 5, 2024, 8:06 PM

    It does:

    // parse config.xml
    config_set_path('', parse_config(true));
    $default_theme = "pfSense.css";
    $default_columns = 2;
    $default_widgets = "system_information:col1:show,interfaces:col2:show";
    
    echo "Resetting webGUI:\n";
    echo "  Theme to " . $default_theme . "\n";
    echo "  Dashboard columns to " . $default_columns . "\n";
    echo "  Top navigation to scroll\n";
    echo "  Widgets to System Information and Interfaces\n";
    echo "...";
    
    config_set_path('system/webgui/webguicss', $default_theme);
    config_set_path('system/webgui/dashboardcolumns', $default_columns);
    
    config_del_path('system/webgui/webguifixedmenu');
    
    config_set_path('widgets/sequence', $default_widgets);
    
    write_config("pfSsh.php reset webGUI");
    
    echo "done.\n";
    

    So it resets the dashboard to the default layout. Useful if you have added a broken widget for example because you are always first taken to the dashboard.

    C 1 Reply Last reply Aug 5, 2024, 8:15 PM Reply Quote 0
    • C
      chudak @stephenw10
      last edited by Aug 5, 2024, 8:15 PM

      @stephenw10 said in Can't login to GUI:

      It does:

      // parse config.xml
      config_set_path('', parse_config(true));
      $default_theme = "pfSense.css";
      $default_columns = 2;
      $default_widgets = "system_information:col1:show,interfaces:col2:show";
      
      echo "Resetting webGUI:\n";
      echo "  Theme to " . $default_theme . "\n";
      echo "  Dashboard columns to " . $default_columns . "\n";
      echo "  Top navigation to scroll\n";
      echo "  Widgets to System Information and Interfaces\n";
      echo "...";
      
      config_set_path('system/webgui/webguicss', $default_theme);
      config_set_path('system/webgui/dashboardcolumns', $default_columns);
      
      config_del_path('system/webgui/webguifixedmenu');
      
      config_set_path('widgets/sequence', $default_widgets);
      
      write_config("pfSsh.php reset webGUI");
      
      echo "done.\n";
      

      So it resets the dashboard to the default layout. Useful if you have added a broken widget for example because you are always first taken to the dashboard.

      I will wait on using it , thx

      6aaf4533-1112-4e1f-a222-1855eda230d6-image.png

      That's what I got on incognito browser

      G 1 Reply Last reply Aug 5, 2024, 8:35 PM Reply Quote 0
      • G
        Gertjan @chudak
        last edited by Aug 5, 2024, 8:35 PM

        @chudak

        Time to find out what written here :
        fab51733-6b17-40a3-bc52-ee8fe332b841-image.png

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

        C 1 Reply Last reply Aug 5, 2024, 9:43 PM Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Aug 5, 2024, 8:39 PM

          Can you click on that to reach the crash report?

          Can you visit any other page if you go to it directly? Like: https://<firewall_ip>/status_logs.php

          C 1 Reply Last reply Aug 5, 2024, 9:43 PM Reply Quote 0
          • C
            chudak @Gertjan
            last edited by Aug 5, 2024, 9:43 PM

            @Gertjan said in Can't login to GUI:

            @chudak

            Time to find out what written here :
            fab51733-6b17-40a3-bc52-ee8fe332b841-image.png

            The web server encountered an error processing this request.

            Check the Crash Reporter for details.
            50x Error

            1 Reply Last reply Reply Quote 0
            • C
              chudak @stephenw10
              last edited by chudak Aug 5, 2024, 9:47 PM Aug 5, 2024, 9:43 PM

              @stephenw10 said in Can't login to GUI:

              Can you click on that to reach the crash report?

              Can you visit any other page if you go to it directly? Like: https://<firewall_ip>/status_logs.php

              Yes actually!!!

              But not dashboard

              What does it mean?

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Aug 5, 2024, 10:49 PM

                Almost certainly that something on the dashboard is triggering the issue.

                What widgets do you have enabled there?

                C 1 Reply Last reply Aug 5, 2024, 11:06 PM Reply Quote 0
                • C
                  chudak @stephenw10
                  last edited by Aug 5, 2024, 11:06 PM

                  @stephenw10

                  Hard to say, can't remember

                  I'd say all :)

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Aug 5, 2024, 11:19 PM

                    Well running that phpshell script will set the dash back to the defaults if needed. Or you can roll back the config if you just added something to the dash.

                    C 1 Reply Last reply Aug 6, 2024, 12:39 AM Reply Quote 0
                    • C
                      chudak @stephenw10
                      last edited by Aug 6, 2024, 12:39 AM

                      @stephenw10 said in Can't login to GUI:

                      Well running that phpshell script will set the dash back to the defaults if needed. Or you can roll back the config if you just added something to the dash.

                      I will try rebooting tomorrow

                      I have not touched anything at all on the dash, so 🤷🏼‍♂️

                      Another issue is - what’s the best way to troubleshoot for users in similar situations. So far no answer yet

                      I must tell that today's exchange was useful

                      Thx guys!

                      G 1 Reply Last reply Aug 6, 2024, 6:58 AM Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Aug 6, 2024, 3:43 AM

                        Check the System and Webgui logs. Use the CLI if the webgui is not available at all.

                        1 Reply Last reply Reply Quote 0
                        • G
                          Gertjan @chudak
                          last edited by Aug 6, 2024, 6:58 AM

                          @chudak said in Can't login to GUI:

                          what’s the best way to troubleshoot for users in similar situations.

                          As my signature : always start looking at the logs.
                          Don't care if the GUI or whatever isn't working : the logs are always (every system on the planet) here : /var/log/
                          Logs files are always great : the tell you when the system is happy, you'll learn to see what logs look like if all is well.
                          When things go downhill, you'll spot the new lines / messages and these tell you what is up.

                          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 0
                          • C
                            chudak
                            last edited by Aug 6, 2024, 6:47 PM

                            The system is back to normal without me doing anything today !!!

                            S 1 Reply Last reply Jan 2, 2025, 5:55 PM Reply Quote 0
                            • J
                              JonathanLee
                              last edited by Aug 6, 2024, 7:06 PM

                              There is a GUI security feature that will lock the gui out under some attack conditions. It self locks for a specific time

                              Make sure to upvote

                              C 1 Reply Last reply Aug 6, 2024, 7:09 PM Reply Quote 0
                              • C
                                chudak @JonathanLee
                                last edited by Aug 6, 2024, 7:09 PM

                                @JonathanLee said in Can't login to GUI:

                                There is a GUI security feature that will lock the gui out under some attack conditions. It self locks for a specific time

                                Really? And where is it configured and how do I know it was invoked?

                                I did run multiple pings from other countries, so it could be treated as an attack, I guess.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Aug 6, 2024, 7:19 PM

                                  If you fail to login 3 times from the same source IP it will get locked out by sshguard. When that happens you won't be able to connect at all. You won't see the login screen. What you're seeing is not that.

                                  https://docs.netgate.com/pfsense/en/latest/config/advanced-admin.html#login-protection

                                  J C 2 Replies Last reply Aug 6, 2024, 7:23 PM Reply Quote 1
                                  • J
                                    JonathanLee @stephenw10
                                    last edited by JonathanLee Aug 6, 2024, 7:23 PM Aug 6, 2024, 7:23 PM

                                    @stephenw10 I learned that the hard way :)

                                    Make sure to upvote

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      chudak @stephenw10
                                      last edited by Aug 6, 2024, 7:45 PM

                                      @stephenw10 said in Can't login to GUI:

                                      If you fail to login 3 times from the same source IP it will get locked out by sshguard. When that happens you won't be able to connect at all. You won't see the login screen. What you're seeing is not that.

                                      https://docs.netgate.com/pfsense/en/latest/config/advanced-admin.html#login-protection

                                      Does it expose any GUI level option?

                                      thx it's great!

                                      S 1 Reply Last reply Aug 6, 2024, 7:56 PM Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator @chudak
                                        last edited by Aug 6, 2024, 7:56 PM

                                        @chudak said in Can't login to GUI:

                                        Does it expose any GUI level option?

                                        Not sure what you're asking there?

                                        There are tuning options for it in the GUI. You can whitelist IPs to prevent them being blocked.

                                        C 1 Reply Last reply Aug 6, 2024, 7:58 PM Reply Quote 0
                                        • C
                                          chudak @stephenw10
                                          last edited by Aug 6, 2024, 7:58 PM

                                          @stephenw10 said in Can't login to GUI:

                                          @chudak said in Can't login to GUI:

                                          Does it expose any GUI level option?

                                          Not sure what you're asking there?

                                          There are tuning options for it in the GUI. You can whitelist IPs to prevent them being blocked.

                                          Where please?

                                          1 Reply Last reply Reply Quote 0
                                          17 out of 45
                                          • First post
                                            17/45
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received