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

Help! Can't access webGUI

Scheduled Pinned Locked Moved webGUI
18 Posts 3 Posters 1.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.
  • P
    pfguy2018
    last edited by Nov 14, 2021, 11:13 PM

    After a change to my WAN port, I am no longer to access the webGUI. Everything else seems to be working - DNS assigning addresses, internet connection active, console accessible. But I cannot get any connection at the webGUI address. How can I fix this?

    P 1 Reply Last reply Nov 14, 2021, 11:14 PM Reply Quote 0
    • P
      pfguy2018 @pfguy2018
      last edited by Nov 14, 2021, 11:14 PM

      @pfguy2018
      And when I try to restart the webconfigurator from the console, I get the following message:

      Restarting webConfigurator...
      Message from syslogd@ark at Nov 14 18:13:15 ...
      nginx: 2021/11/14 18:13:15 [emerg] 61928#100494: bind() to 0.0.0.0:443 failed (48: Address already in use)

      V 1 Reply Last reply Nov 15, 2021, 4:05 PM Reply Quote 0
      • V
        viragomann @pfguy2018
        last edited by Nov 15, 2021, 4:05 PM

        @pfguy2018 said in Help! Can't access webGUI:

        nginx: 2021/11/14 18:13:15 [emerg] 61928#100494: bind() to 0.0.0.0:443 failed (48: Address already in use)

        Check out which application is using port 443:

        sockstat | grep 443
        
        P 1 Reply Last reply Nov 15, 2021, 4:09 PM Reply Quote 0
        • P
          pfguy2018 @viragomann
          last edited by Nov 15, 2021, 4:09 PM

          @viragomann said in Help! Can't access webGUI:

          sockstat | grep 443

          I was able to restore access to the webgui by stopping OpenVPN server and restarting webgui from console. But when rebooting, the same problem occurs.

          The output to the sockstat command is
          root nginx 49861 5 tcp4 *:443 :
          root nginx 49861 6 tcp6 *:443 :
          root nginx 49861 9 tcp4 192.168.88.1:443 192.168.88.100:60561
          root nginx 49809 5 tcp4 *:443 :
          root nginx 49809 6 tcp6 *:443 :
          root nginx 49758 5 tcp4 *:443 :
          root nginx 49758 6 tcp6 *:443 :
          root lighttpd_p 53712 5 tcp4 127.0.0.1:8443 :
          root lighttpd_p 53712 7 tcp4 10.10.10.1:443 :
          root lighttpd_p 53712 9 tcp6 ::1:8443 :
          root openvpn 13832 6 tcp4 X.X.X.X:443 :

          V 1 Reply Last reply Nov 15, 2021, 4:11 PM Reply Quote 0
          • V
            viragomann @pfguy2018
            last edited by Nov 15, 2021, 4:11 PM

            @pfguy2018
            So your OpenVPN is listening on port 443.

            You can switch the WebGUI to a different port in System > Advanced > Admin Access.

            P 1 Reply Last reply Nov 15, 2021, 4:15 PM Reply Quote 0
            • P
              pfguy2018 @viragomann
              last edited by Nov 15, 2021, 4:15 PM

              @viragomann
              This seems simple! Any particular port that you would suggest?

              V 1 Reply Last reply Nov 15, 2021, 4:18 PM Reply Quote 0
              • V
                viragomann @pfguy2018
                last edited by Nov 15, 2021, 4:18 PM

                @pfguy2018
                You can use any unused port up to 65k.
                The only drawback, you have to enter it into the web browser when you want to access pfSense.

                P 1 Reply Last reply Nov 15, 2021, 4:31 PM Reply Quote 0
                • P
                  pfguy2018 @viragomann
                  last edited by pfguy2018 Nov 15, 2021, 4:38 PM Nov 15, 2021, 4:31 PM

                  @viragomann
                  OK, I changed the port to 4443. Rebooted. Same problem recurs. From console, when I try to restart webgui, I get the following:
                  Restarting webConfigurator...
                  Message from syslogd@ark at Nov 15 11:30:04 ...
                  nginx: 2021/11/15 11:30:04 [emerg] 78994#100601: bind() to 0.0.0.0:80 failed (48: Address already in use)

                  Message from syslogd@ark at Nov 15 11:30:04 ...
                  nginx: 2021/11/15 11:30:04 [emerg] 78994#100601: bind() to 0.0.0.0:80 failed (48: Address already in use)

                  Message from syslogd@ark at Nov 15 11:30:04 ...
                  nginx: 2021/11/15 11:30:04 [emerg] 78994#100601: bind() to 0.0.0.0:80 failed (48: Address already in use)

                  Message from syslogd@ark at Nov 15 11:30:04 ...
                  nginx: 2021/11/15 11:30:04 [emerg] 78994#100601: bind() to 0.0.0.0:80 failed (48: Address already in use)

                  Message from syslogd@ark at Nov 15 11:30:04 ...
                  nginx: 2021/11/15 11:30:04 [emerg] 78994#100601: bind() to 0.0.0.0:80 failed (48: Address already in use)

                  Message from syslogd@ark at Nov 15 11:30:04 ...
                  nginx: 2021/11/15 11:30:04 [emerg] 78994#100601: still could not bind()
                  done.

                  And now when I kill the OpenVPN service from the console, I can't get the webgui to restart at all.

                  P 1 Reply Last reply Nov 15, 2021, 4:48 PM Reply Quote 0
                  • P
                    pfguy2018 @pfguy2018
                    last edited by Nov 15, 2021, 4:48 PM

                    And the device emailed me the following error
                    11:42:15 PHP ERROR: Type: 64, File: /usr/local/sbin/pfSsh.php(374) : eval()'d code, Line: 29, Message: Cannot redeclare usage() (previously declared in /usr/local/sbin/pfSsh.php(374) : eval()'d code:30)

                    I am really stuck here. I can't figure out how to reach the webgui at all

                    P 1 Reply Last reply Nov 15, 2021, 4:50 PM Reply Quote 0
                    • P
                      pfguy2018 @pfguy2018
                      last edited by Nov 15, 2021, 4:50 PM

                      Output to command sockstat -l | grep :80

                      root lighttpd_p 30452 4 tcp4 127.0.0.1:8081 :
                      root lighttpd_p 30452 6 tcp4 10.10.10.1:80 :
                      root lighttpd_p 30452 8 tcp6 ::1:8081 :
                      root openvpn 82111 6 tcp4 *:80 :

                      Hoping someone can make sense of this

                      V 1 Reply Last reply Nov 15, 2021, 5:01 PM Reply Quote 0
                      • V
                        viragomann @pfguy2018
                        last edited by Nov 15, 2021, 5:01 PM

                        @pfguy2018 said in Help! Can't access webGUI:

                        root openvpn 82111 6 tcp4 *:80 :

                        Your OpenVPN listens on port 80???

                        P 1 Reply Last reply Nov 15, 2021, 5:06 PM Reply Quote 0
                        • P
                          pfguy2018 @viragomann
                          last edited by Nov 15, 2021, 5:06 PM

                          @viragomann
                          That was the problem. I killed that process and was able to restart the webgui. And now have changed that OpenVPN server port! Not sure why I ever set it up that way.

                          Thanks for your help with this!

                          M 1 Reply Last reply Nov 15, 2021, 5:19 PM Reply Quote 1
                          • M
                            mer @pfguy2018
                            last edited by Nov 15, 2021, 5:19 PM

                            Doesn't OpenVPN by default listen on 80/443 to cover inbound connections? I'm looking at some client side config as I say that.

                            V P 2 Replies Last reply Nov 15, 2021, 5:26 PM Reply Quote 0
                            • V
                              viragomann @mer
                              last edited by Nov 15, 2021, 5:26 PM

                              @mer said in Help! Can't access webGUI:

                              Doesn't OpenVPN by default listen on 80/443 to cover inbound connections?

                              No, the web configurator does.

                              But the port can be changed in the System settings as mentioned above.
                              To get rid of listening to port 80 as well you can additionally check "Disable webConfigurator redirect rule".

                              M 1 Reply Last reply Nov 15, 2021, 5:31 PM Reply Quote 1
                              • P
                                pfguy2018 @mer
                                last edited by Nov 15, 2021, 5:26 PM

                                @mer
                                Not sure. But when I changed from port 80 to another port and rebooted, webgui came up immediately with no issues. So this clearly was the problem.

                                1 Reply Last reply Reply Quote 1
                                • M
                                  mer @viragomann
                                  last edited by Nov 15, 2021, 5:31 PM

                                  @viragomann
                                  Ok, maybe I'm not being clear.
                                  It seems like the reason the OP webgui couldn't start was because OpenVPN was listening on one or more of the ports the web gui defaults to listening on.

                                  Is that a correct statement?

                                  If so then what does OpenVPN server listen on by default? I have some client config from a work system that implies/says to talk to the server on 80/443.

                                  So, we know the webgui by default listens on 80/443, by default what is OpenVPN server listening on and if there is overlap, which one should change the default?

                                  V 1 Reply Last reply Nov 15, 2021, 5:48 PM Reply Quote 0
                                  • V
                                    viragomann @mer
                                    last edited by viragomann Nov 15, 2021, 5:53 PM Nov 15, 2021, 5:48 PM

                                    @mer
                                    No, there is no port overlapping with pfSense services by default of course.

                                    The web configurator listens on both, 80 and 443.
                                    OpenVPN is on 1194. But as soon as you need an additional OpenVPN server you need a second different port for it naturally.

                                    In the TOs case, he set the OpenVPN to listen on 80 and 443 and hence the web configurator did not start up.

                                    I have some client config from a work system that implies/says to talk to the server on 80/443

                                    This is possible for sure when you move the webGUI to a different port and check "Disable webConfigurator redirect rule".

                                    There are also other possibilities like OpenVPN port sharing or going over HA proxy to share ports with other services.

                                    M 1 Reply Last reply Nov 15, 2021, 5:51 PM Reply Quote 1
                                    • M
                                      mer @viragomann
                                      last edited by Nov 15, 2021, 5:51 PM

                                      @viragomann Thank you the additional server part was not clear to me. Probably read too quickly over it.
                                      But thanks for clarification.

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