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

    Hotplug event on backup interface resets connections

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 3 Posters 1.6k Views 3 Watching
    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.
    • E Offline
      ed-tech
      last edited by

      hi there, i am having issue with my pfsense 2.5.2 when for example my backup internet has issue with cable or if i restart the router of backup internet than it resets all connections, i also checked Disable Gateway Monitoring Action on backup interface but it still resets all connections, here is the logs:
      Nov 10 07:49:55 check_reload_status 378 Reloading filter
      Nov 10 07:49:55 php-fpm 65700 /rc.newwanip: rc.newwanip: on (IP address: 192.168.0.251) (interface: A1[opt2]) (real interface: igb2).
      Nov 10 07:49:55 php-fpm 65700 /rc.newwanip: rc.newwanip: Info: starting on igb2.
      Nov 10 07:49:54 check_reload_status 378 Reloading filter
      Nov 10 07:49:54 check_reload_status 378 rc.newwanip starting igb2
      Nov 10 07:49:54 php-fpm 65700 /rc.linkup: Hotplug event detected for A1(opt2) static IP (192.168.0.251 )
      Nov 10 07:49:53 kernel igb2: link state changed to UP
      Nov 10 07:49:53 check_reload_status 378 Linkup starting igb2
      Nov 10 07:49:30 check_reload_status 378 Reloading filter
      Nov 10 07:49:30 php-fpm 79198 /rc.linkup: Hotplug event detected for A1(opt2) static IP (192.168.0.251 )
      Nov 10 07:49:29 kernel igb2: link state changed to DOWN
      Nov 10 07:49:29 check_reload_status 378 Linkup starting igb2

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @ed-tech
        last edited by

        @edmond

        Fast and shot solution : have the device on the other side of the OPT2 (IGB2) cable also connected on the UPS. Or : don't have it going down.

        The LINK UP event activates the interface. On a de activated interface, there are no firewall, no routing tables, nothing, it's just not activated and logically not present in the 'routing' system.
        When it comes active, firewall rules have to be loaded, and routing might chance.
        So, yeah, other process, pfSense packages etc are being signalled of this event.
        If this didn't happen you could have a huge security issue in your firewall/router ...

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

        E 1 Reply Last reply Reply Quote 1
        • E Offline
          ed-tech @Gertjan
          last edited by

          @gertjan i know that my backup router is not working very good i need to replace it and the only solution for now is that i also need to check mark the Disable Gateway Monitoring so this way i dont have any issue, but i used to have cisco router and with cisco i did not have this issue even if i unplugged the backup internet cable, because this way its not right if one of my backup devices to go down and all my connection to reset.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @ed-tech
            last edited by

            @edmond

            Check / consider also this one :

            970920e5-7de7-4982-84c8-f8cbabf35288-image.png

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

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              ed-tech @Gertjan
              last edited by

              @gertjan its unchecked

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

                Reloading the filter does not reset states.

                Disconnecting an interface should not do that either unless there's an IP conflict or some sort or gateway failover event.

                Does it do it for both gateways? Or if you manually reload the filter?

                Is it actually resetting all states? Do you lose connection to the gui temporarily?

                Steve

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  ed-tech @stephenw10
                  last edited by

                  @stephenw10 the Disable Gateway Monitoring and
                  Disable Gateway Monitoring Action is enable but still i am having issue when i receive event hotplug and when that happen i dont have internet at that moment because it resets all Connection States so i dont know where is the issue, it should not do that

                  GertjanG 1 Reply Last reply Reply Quote 0
                  • GertjanG Offline
                    Gertjan @ed-tech
                    last edited by

                    @edmond said in Hotplug event on backup interface resets connections:

                    i receive event hotplug

                    These events are hardware events. The electrical connection when down, or there were just to many transmission / reception errors. The NIC resets itself to renegotiate a connection.
                    Change cable and/or NIC's on both sides will take care of the issue.

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

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      ed-tech @Gertjan
                      last edited by

                      @gertjan but that is my backup internet that is doing that hotplug i know that the router is not working good but i dont know why it affects my primary connection, than what is the point of failover if we have this kind of issue,

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG Offline
                        Gertjan @ed-tech
                        last edited by

                        @edmond said in Hotplug event on backup interface resets connections:

                        that is my backup internet that is doing that hotplug

                        You mean : a 'backup' WAN interface that resets, and it influences states on the other interfaces ( primary WAN) ?

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

                        E 1 Reply Last reply Reply Quote 0
                        • E Offline
                          ed-tech @Gertjan
                          last edited by

                          @gertjan yes, even if i check mark the Disable Gateway Monitoring and Disable Gateway Monitoring Action on Backup interface it still reset the connections on Primary Interface

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

                            The only time you see that caused by software is if you;re running Snort/Suricata in in-line mode and it restarts. Are running either?
                            It still shouldn't reset states though.

                            Steve

                            E 1 Reply Last reply Reply Quote 0
                            • E Offline
                              ed-tech @stephenw10
                              last edited by

                              @stephenw10 no, i dont have any packege installed not sure why is doing that, is it beacuse i changed the interface name?

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

                                If you changed the interface name it would do that because it would reapply all the interface properties including the link speed/type. But it would only do it once when you actually made the change.

                                Steve

                                E 1 Reply Last reply Reply Quote 0
                                • E Offline
                                  ed-tech @stephenw10
                                  last edited by

                                  @stephenw10 its doing every time that my backup router keeps rebooting by itself. I am waiting for my service provider to change the router but i want to see if there is a bug somewhere in the pfsense, because it doesnt make sense to me to reset all connection because of something that is doing my backup interface, no sure if you guys can test in your enviroment

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

                                    Ah, OK so it really is loosing link on that interface. That explains the logs you're seeing.

                                    But we still wouldn't expect it to lose states on other interfaces when that happens.

                                    Does it actually reset the states? If you look at the Status > Monitoring graphs for states use do you see them drop to zero?

                                    Steve

                                    E 1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      ed-tech @stephenw10
                                      last edited by

                                      @stephenw10 i just restarted the router that is on the backup interface and i got ping timeout also the phone calls droped and i did not have internet for like 10 seconds, the time that i did reboot was 15:28:00 ,here is the screenshotScreenshot_20211124-163155_AnyDesk.jpg

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

                                        Hmm, well it's certainly loosing some states. The averaging is probably hiding the exact number.

                                        How many states do you have using the backup WAN normally? Before you rebooted it?

                                        Steve

                                        E 1 Reply Last reply Reply Quote 0
                                        • E Offline
                                          ed-tech @stephenw10
                                          last edited by

                                          @stephenw10 i did restart the pfsense and now i dont have that issue anymore, maybe i had to restart pfsense after i did change the interface name of the backup internet i am not sure. I also tried now to uncheck the Disable Gateway Monitoring because i want to receive notification if my backup internet has issue but if i uncheck it will reset all connections if my backup internet has issue, i think it should not do that because the Disable Gateway Monitoring Action is checked but if check mark the Disable Gateway Monitoring i dont have issue now.

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

                                            Hmm, weird!
                                            Take the win and move on.... 😉

                                            Steve

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