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

    SG-3100 rebooting

    Scheduled Pinned Locked Moved General pfSense Questions
    25 Posts 3 Posters 2.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.
    • GertjanG
      Gertjan @axxxxe
      last edited by Gertjan

      @axxxxe said in SG-3100 rebooting:

      Is it bad

      Yes.
      A single server process can listen on a port. Ones started, another server can't use that port.

      You could use UDP as a protocol for you OpenVPN on port 443.
      As nginx, the pfSense web server, uses port 443 protocol TCP, this will be ok.

      Or move the pfSense web server GUI to another port, like 8080.

      Or just leave the OpenVPN on the default 1194 port.

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

      A 1 Reply Last reply Reply Quote 1
      • A
        axxxxe @Gertjan
        last edited by

        @gertjan
        Ok, thanks for the helpful info. I find it bizarre that this config worked for years and only in the last 2 weeks suddenly broke the WebGUI.

        Two questions:

        How do I fix this from the console, at least so I can get in over the web interface and adjust the OVPN server settings?

        Does this explain the random rebooting of the unit?

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @axxxxe
          last edited by Gertjan

          @axxxxe said in SG-3100 rebooting:

          How do I fix this from the console, at least so I can get in over the web interface and adjust the OVPN server settings?

          You have the console access working ?
          Then easy : edit** the pfSense master config file /cf/conf/confiig.xml
          Locate the openvpn server settings, you'll see the port number "443", change that for "1234".
          Save.
          Reboot.
          All is well.

          There is a command that can help you :

          viconfig
          

          (if you know what 'vi' is 😊 )

          @axxxxe said in SG-3100 rebooting:

          Does this explain the random rebooting of the unit?

          The GUI web server is also use to 'execute' many PHP scripts that are needed for the pfSense household tasks.
          With the GUI not running, the system will become .... undefined to me.

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

            I would say it doesn't explain the rebooting.

            I also find it odd that it prevented the webgui process starting at all. I would have expected it to be unavailable on the WAN address only. However that is a conflict so I would start out by removing it.

            You can use the Easy Editor ee instead of vi if you're not a masochist! It's built in.

            Or you can use the 'Set interface(s) IP address' function from the menu. If you set one of the interfaces to the same address it already has it will ask if you wish to revert the webgui to http on port 80. You can then connect there and make other changes in the gui.

            Steve

            A 1 Reply Last reply Reply Quote 1
            • A
              axxxxe @stephenw10
              last edited by

              @stephenw10 said in SG-3100 rebooting:

              Or you can use the 'Set interface(s) IP address' function from the menu. If you set one of the interfaces to the same address it already has it will ask if you wish to revert the webgui to http on port 80. You can then connect there and make other changes in the gui.

              I followed this route. Once in over the WebGUI I just deleted the OVPN server since I didn't actually need it anymore. After a reboot the system came up with far less complaining in the log. Fingers crossed that the issues is resolved.

              I have to say that it seems like a bug to me that one can break the system by listening on 443 on the WAN port. This didn't used to be the case. I've had that OVPN server configured to listen on 443 since at least January of 2018 and until recently there was no issue. Note that I only upgraded from 2.4.5 to 22.05 two months ago. Maybe this issue was introduced in 22.05?

              Anyway, thank you Steve and Gertjan for the help!

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

                Indeed I don't expect to see the gui stop functioning entirely with that sort of conflict.
                I'll try to replicate it.

                Glad you were able to recover access though.

                Steve

                1 Reply Last reply Reply Quote 1
                • A axxxxe referenced this topic on
                • A axxxxe referenced this topic on
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  I couldn't replicate this in 22.05 (amd64). Setting a OpenVPN server to TCP port 443 does exactly what I expect it to; it prevent accessing the webgui on the interface it's running on but not on others.
                  Screenshot from 2022-11-06 17-12-11.png

                  Did you have it con figured in any special way? UDP+TCP maybe? Multihome?

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    axxxxe @stephenw10
                    last edited by axxxxe

                    @stephenw10
                    Mine was TCP only, no multihome.
                    But mine was on the WAN port. Maybe the failure only occurs when it's on the WAN port?

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

                      Possible, though I can't see why. Yet.

                      1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @axxxxe
                        last edited by

                        @axxxxe said in SG-3100 rebooting:

                        've had that OVPN server configured to listen on 443 since at least January of 2018 and until recently there was no issue.

                        If you've set up OpenVPN using UDP, it could co exist on port 443, as the nginx GUI web server uses TCP.

                        This : Sharing a Port with OpenVPN and a Web Server tells me that it is possible to use TCP for both a web server and OpenVPN to use port 443/TCP.

                        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
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.