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

    Connections/states DROP when changing web configurator COLOR!!

    Scheduled Pinned Locked Moved Development
    6 Posts 2 Posters 92 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.
    • N
      netblues
      last edited by netblues

      Strange as it is I noticed that doing seemingly unrelated to routing actions drop
      active connections.

      The most bizzare is changing login page color (but also happens elsewhere)

      Radio streaming will always stop (and needs a refresh to restart)
      And all ssh connections will also drop.
      ALWAYS.

      It seems like changes in e.g. login page color resets states.
      Same happens when changing (irrelevant) firewall rules too,
      but lets focus on the console colors resetting states issue.

      I'm on 25.07 rc, latest.
      And if it was a states issue I would also loose web console access, which is not the case too.

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

        Hmm, unexpected indeed! The webgui uses TCP so a new state would just be opened if it was dropped.

        Do you see hits in the firewall log when that happens?

        N 1 Reply Last reply Reply Quote 0
        • N
          netblues @stephenw10
          last edited by

          @stephenw10 And my ssh sessions use tcp, but they get dropped.
          (and clearing states always leads to web gui access lost for several seconds)

          Couldn't find anything strange on the logs, but then I might not be logging what is needed to catch this. (Internal to external destinations traffic)
          I just noticed that it only affects natted traffic, NOT routed.
          I set up an experiment with iperf to a remote host. over typical ipv4 outbound nat (for Internet access)
          Output follows
          Its obvious when I changed colors in webgui
          At the same time remote ssh sessions freeze (and disconnect with timeout_)
          Routed sessions (and iperf) via pf remain intact.

          [ ID] Interval Transfer Bitrate Retr Cwnd
          [ 5] 0.00-1.00 sec 35.8 MBytes 300 Mbits/sec 0 551 KBytes
          [ 5] 1.00-2.00 sec 35.8 MBytes 300 Mbits/sec 0 543 KBytes
          [ 5] 2.00-3.00 sec 35.9 MBytes 301 Mbits/sec 0 523 KBytes
          [ 5] 3.00-4.00 sec 35.8 MBytes 300 Mbits/sec 0 520 KBytes
          [ 5] 4.00-5.00 sec 35.8 MBytes 300 Mbits/sec 0 526 KBytes
          [ 5] 5.00-6.00 sec 35.8 MBytes 300 Mbits/sec 0 540 KBytes
          [ 5] 6.00-7.00 sec 35.8 MBytes 300 Mbits/sec 0 526 KBytes
          [ 5] 7.00-8.00 sec 35.8 MBytes 300 Mbits/sec 0 523 KBytes
          [ 5] 8.00-9.00 sec 35.8 MBytes 300 Mbits/sec 0 518 KBytes
          [ 5] 9.00-10.00 sec 35.8 MBytes 300 Mbits/sec 0 523 KBytes
          [ 5] 10.00-11.00 sec 35.8 MBytes 300 Mbits/sec 0 523 KBytes
          [ 5] 11.00-12.00 sec 35.8 MBytes 300 Mbits/sec 0 526 KBytes
          [ 5] 12.00-13.00 sec 35.9 MBytes 301 Mbits/sec 7 627 KBytes
          [ 5] 13.00-14.00 sec 35.8 MBytes 300 Mbits/sec 0 579 KBytes
          [ 5] 14.00-15.00 sec 35.8 MBytes 300 Mbits/sec 0 579 KBytes
          [ 5] 15.00-16.00 sec 17.0 MBytes 143 Mbits/sec 2 1.41 KBytes
          [ 5] 16.00-17.00 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
          [ 5] 17.00-18.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
          [ 5] 18.00-19.00 sec 0.00 Bytes 0.00 bits/sec 1 1.41 KBytes
          [ 5] 19.00-20.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
          [ 5] 20.00-21.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes
          [ 5] 21.00-22.00 sec 0.00 Bytes 0.00 bits/sec 1 1.00 KBytes
          [ 5] 22.00-23.00 sec 0.00 Bytes 0.00 bits/sec 0 1.00 KBytes
          [ 5] 23.00-24.00 sec 0.00 Bytes 0.00 bits/sec 0 1.00 KBytes
          [ 5] 24.00-25.00 sec 0.00 Bytes 0.00 bits/sec 0 1.00 KBytes
          [ 5] 25.00-26.00 sec 0.00 Bytes 0.00 bits/sec 0 1.00 KBytes
          [ 5] 26.00-26.81 sec 0.00 Bytes 0.00 bits/sec 0 1.00 KBytes

          Happens always. !

          Any ideas where should I look for logs more than welcome

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

            When I make that change I see logged:

            Jul 24 15:06:24 	check_reload_status 	687 	Syncing firewall
            Jul 24 15:06:24 	php-fpm 	57549 	/system.php: Configuration Change: admin@172.21.16.8 (Local Database): System:
            Jul 24 15:06:25 	php-fpm 	57549 	/system.php: Staging AutoConfigBackup encrypted configuration backup for deferred upload to https://acb.netgate.com
            Jul 24 15:06:27 	root 	45627 	/etc/rc.d/hostid: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one
            Jul 24 15:06:34 	php-fpm 	57549 	/system.php: NTPD is starting up.
            Jul 24 15:06:34 	check_reload_status 	687 	Reloading filter 
            

            So you can see it reloads the firewall ruleset. For some reason. It's not immediately obvious what setting on that page might require it....

            N 1 Reply Last reply Reply Quote 0
            • N
              netblues @stephenw10
              last edited by

              @stephenw10 And it restarts ntp too?

              Doesn't look like a feature to me, but is it a bug?

              And why reloading filter kills nat sessions to begin with.. I don't remember that being the case in the past (but I might be wrong)

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

                It restarts ntpd because that page has the external ntp server settings on it. But nothing there looks like it would affect the firewall... 🤔

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