Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    NOTICE [Gateway Monitoring] killed policy routing in the log every 15 minutes

    Scheduled Pinned Locked Moved General pfSense Questions
    16 Posts 3 Posters 814 Views 6 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.
    • R
      richardsago
      last edited by richardsago

      Good day. Please let me know if it's normal or do I need to change settings when there's a repeating message on gateway monitoring in Status > System Logs > System > General every 15 minutes. I'm not sure if this started after upgrade to pfsense 2.9.0:

      Oct 26 09:15:04 	xinetd 	53699 	Starting reconfiguration
      Oct 26 09:15:04 	xinetd 	53699 	Swapping defaults
      Oct 26 09:15:04 	xinetd 	53699 	readjusting service 6969-udp
      Oct 26 09:15:04 	xinetd 	53699 	Reconfigured: new=0 old=1 dropped=0 (services)
      Oct 26 09:15:04 	php-cgi 	29245 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failover
      Oct 26 09:15:04 	php-cgi 	29245 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failoverStarLink
      Oct 26 09:30:04 	xinetd 	53699 	Starting reconfiguration
      Oct 26 09:30:04 	xinetd 	53699 	Swapping defaults
      Oct 26 09:30:04 	xinetd 	53699 	readjusting service 6969-udp
      Oct 26 09:30:04 	xinetd 	53699 	Reconfigured: new=0 old=1 dropped=0 (services)
      Oct 26 09:30:04 	php-cgi 	82786 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failover
      Oct 26 09:30:04 	php-cgi 	82786 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failoverStarLink
      

      There are no outages in Status > System Logs > System > Gateways during this time

      I (think I) have seen the "Starting reconfiguration", "Swapping defaults", "readjusting service 6969-udp", and "Reconfigured: new=0 old=1 dropped=0 (services)" before the upgrade and I have assumed they are normal recurring log messages in pfsense but please let me know if these should not periodically appear every 15 minutes and what logs and screenshots to provide. Thank you

      There are two WANs (both fiber), with some VLANs configured to failover from WAN1 to WAN2, some VLANs configured to failover from WANS2 to WAN1, and some VLANs set to WAN2 with no failover.

      WAN1 has gateway of 192.168.2.1 and monitor IP of 8.8.8.8:
      fbab7d64-b583-4c16-af70-6392503689ab-image.png

      WAN2 has gateway of 192.168.3.1 and monitor IP of 8.8.4.4:
      3dcb54f2-8adb-4532-92c6-3e8fab3a051b-image.png

      The two failover setup in gateway groups:
      b2cbf933-f8f5-47d1-a5a9-1a6a733faac7-image.png

      The gateway monitoring under System > Advanced > Miscellaneous:
      781e741a-6e2a-4a86-811b-a9b3c0dfe5eb-image.png

      Does not use any VPN, HA, and Dynamic DNS. I include this part because I searched this topic in the forum and I think they used either VPN, or HA, or Dynamic DNS. [unrelated: there's ongoing work to set pfblockerNG DNSBL to unbound python mode and after that to set DHCP from ISC to Kea]
      0436b928-9205-4918-ab0a-1f09d3481b61-image.png

      Edited to include the two failover details:
      WAN1
      1c96f2f2-3b65-437c-af95-3d8bee59ca21-image.png

      WAN2
      cac12b1a-7ab2-4129-b113-645c5d25b0aa-image.png

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

        Do you have any firewall rule schedules active? That looks like the pattern you see for scheduled rules.

        R 1 Reply Last reply
        Reply Quote 0
        • R
          richardsago @stephenw10
          last edited by richardsago

          Thank you @stephenw10 for the reply. Yes there are firewall rule schedules but none are active at the time of the screenshots. Because only one of them is really used in a firewall rule I thought to remove the others. The highlighted one below (WorkWeek) is one of the schedules that are not used in any firewall rule but is currently active. I took this screenshot before deleting this firewall rule schedule:

          d3afb6c1-d0c7-4b9b-85b6-01e5cf172e26-image.png

          This is the final version of the schedules after the unused ones are removed. This shows only one firewall rule schedule remains and this one is not active:

          3461e3d9-570f-4c4f-8794-c75cc9960d3e-image.png

          But it's been an hour since the unused firewall rule schedules are removed and the logs still show these regularly every 15 minutes:

          32a6e9dc-abcc-494c-9293-cf5d08b1d9f8-image.png

          In case useful for diagnosis this is System > Advanced > Miscellaneous:
          31b8cfee-b381-4bb3-a5fa-49496762b680-image.png

          Edited to include: here's the firewall rule where this firewall rule schedule is used and nowhere else:
          4c63526b-5e14-4fd4-97ef-841b9c1cf403-image.png

          Edited to include: because the firewall rule schedule will only take effect tonight I temporarily disabled the firewall rule containing this schedule. The log items no longer show up:

          5f1f76b5-5316-4078-a986-96089487e82f-image.png

          I think if I re-activate the firewall rule containing the firewall rule schedule then these lines will resume entries in the logs again. Will these six lines unduly affect our network performance when they appear in the logs every 15 minutes?

          Oct 27 10:45:04 	xinetd 	53699 	Starting reconfiguration
          Oct 27 10:45:04 	xinetd 	53699 	Swapping defaults
          Oct 27 10:45:04 	xinetd 	53699 	readjusting service 6969-udp
          Oct 27 10:45:04 	xinetd 	53699 	Reconfigured: new=0 old=1 dropped=0 (services)
          Oct 27 10:45:05 	php-cgi 	56629 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failover
          Oct 27 10:45:05 	php-cgi 	56629 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failoverStarLink
          
          1 Reply Last reply
          Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            If you have any scheduled rules then the ruleset is reloaded and states killed every 15mins. That happens to apply the schedule changes.

            You can see it in the cron jobs:

            Screenshot from 2026-10-27 03-34-11.png

            R 1 Reply Last reply
            Reply Quote 0
            • R
              richardsago @stephenw10
              last edited by

              Thank you @stephenw10 for the reply. If I need to re-activate the firewall rule schedule: Will these six lines (four xinetd and two php-cgi lines) unduly affect our network performance when they appear again in the logs every 15 minutes?

              Oct 27 10:45:04 	xinetd 	53699 	Starting reconfiguration
              Oct 27 10:45:04 	xinetd 	53699 	Swapping defaults
              Oct 27 10:45:04 	xinetd 	53699 	readjusting service 6969-udp
              Oct 27 10:45:04 	xinetd 	53699 	Reconfigured: new=0 old=1 dropped=0 (services)
              Oct 27 10:45:05 	php-cgi 	56629 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failover
              Oct 27 10:45:05 	php-cgi 	56629 	NOTICE [Gateway Monitoring] killed policy routing states for tier 2 in failoverStarLink
              
              GertjanG 1 Reply Last reply
              Reply Quote 0
              • GertjanG
                Gertjan @richardsago
                last edited by

                @richardsago

                Scheduled events (rules) work like this :
                As soon as you have one defined, with just one start and end date and hour, or a schedule that executes every hour, or day, or only Monday to Friday, the cron task shown above is activated.
                This cron task runs every 15 minutes, "no matter what".
                Every time it executes, it gets the list of all schedules, logically there will be at least one, or more.
                It checks if some rule start, or stops.

                A sequence like this :
                ebb9e036-d78a-46a3-923a-ac84f09313a2-image.png
                You should only see this log sequence if a scheduled rule was started, or stopped.
                Question : do you see this every 15 minutes, or only when action (rule started or stopped) applies ?
                The thing is : on a scheduled rule event which can also affect gateway policies (your case, right ?), processes like unbound, gets reloaded. That's probably one of the things you were looking for for all this time : why does unbound, other processes restarted all the time.

                edit : all this is "imho", I don't use scheduled stuff myself, I don't need to. You probably found out there is a price to pay when you use them. Services like DNS restarted is a big price.

                No "help me" PM's please. Use the forum, the community will thank you.

                R 1 Reply Last reply
                Reply Quote 0
                • R
                  richardsago @Gertjan
                  last edited by

                  Thank you @Gertjan for the reply. These six entries will appear at the logs every 15 minutes as long as a firewall rule schedule is active in a firewall rule, even when the firewall rule schedule is not active. In my case the firewall rule schedule is from 12:00 midnight to 5:00 AM but even during 8:00 AM for example these six entries are output to the system logs every 15 minutes.

                  I would like to know if the firewall rule schedule is re-activated and the six lines will be output to the system logs every 15 minutes: Will these six lines (four xinetd and two php-cgi lines) unduly affect our network performance when they output to the system logs every 15 minutes?

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

                    @richardsago

                    Will these six lines (four xinetd and two php-cgi lines) unduly affect our network performance when they output to the system logs every 15 minutes?

                    Up to you to discover ;)
                    Make a pfSense config backup.
                    Delete all the schedules - everything.
                    No more "four xinetd and two php-cgi lines" ? no more unbound restarts ? **

                    ** before you begin, open two ssh consoles,
                    in the first :, option 8 and type
                    tail -f /var/log/system.log
                    the second :
                    tail -f /var/log/resolver.log

                    If needed, restore your config, and you're back at square one.

                    What I think what happens is, that "(four xinetd and two php-cgi lines)" show up in the logs, with related process reloads !, even when the scheduler, called every 15 minutes, decides there was nothing to as no active rule was started at that moment, neither de-activated at that moment.

                    No "help me" PM's please. Use the forum, the community will thank you.

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

                      I will also add that the xinetd lines usually imply you have NAT reflection enabled in NAT + Proxy mode which is almost never needed. Pure NAT can almost always do the job.

                      1 Reply Last reply
                      Reply Quote 0
                      • R
                        richardsago
                        last edited by

                        Thank you @Gertjan and @stephenw10 for the replies. The "NAT Reflection mode for port forwards" has value of "Disabled"

                        93a1ec8e-99bc-47d0-8e18-5dc9aa9725bc-image.png

                        Checking the "Disabled" definition says "NAT Reflection will not be performed, but it may be enabled on a per-rule basis.", and I'm not sure if I should set it to "Pure NAT". If I have to set this to "Pure NAT" so that the four xinetd entries will no longer appear at the system logs: what should I set or change? We don't have VPN or HA. We have multi WAN that are both fiber and with private IP addresses. These are what we have at Firewall > NAT but please let me know what additional screenshots need to be shown. Thank you

                        Port Forward
                        e61a2d17-e99b-4eca-a442-cb7aa366491d-image.png

                        1:1
                        3c44dcda-67ac-463b-a4b8-0fa671d2f096-image.png

                        Outbound
                        3e26916b-43d6-464d-b91c-27e6d0be27cb-image.png

                        NPt
                        363b68cf-4d5a-4ed1-810f-67b7f6066162-image.png

                        The output of the shell (8) commands to view the last lines of /var/log/system.log and /var/log/resolver.log seem to have the same information as those at Status > System > General and Status > System > DNS Resolver. I don't know yet an alternative to the firewall rule schedule that causes these four xinetd and two php-cgi lines to appear in the logs every 15 minutes.

                        tail -f /var/log/system.log
                        b81bfe77-a690-4cd4-8bda-594cc74f8059-image.png

                        Status > System > General
                        9d9fe3b0-33f6-42b7-aa80-487633ad3346-image.png

                        This is the last lines from Status > System > DNS Resolver that corresponds to the output of tail -f /var/log/resolver.log
                        49d60500-b9df-41c7-91c4-0f553401a176-image.png

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

                          As it says there you can override the NAT reflection mode on each port forward so you should check that.

                          But also you can see it's running a service on UDP port 6969. Do you have miniupnpd enabled? Maybe something on your LAN has opened it.

                          R 1 Reply Last reply
                          Reply Quote 0
                          • R
                            richardsago @stephenw10
                            last edited by

                            Thank you @stephenw10 for the reply.

                            (1 of 3) Not sure if the system log entry "readjusting service 6969-udp" is because of tftp proxy because I use tftp to access older switches. This is System > Advanced > Firewall & NAT:

                            877b1a54-59fc-42b5-bb5d-23ff96d77735-image.png
                            But I don't get why the whole set of logs including "readjusting service 6969-udp" no longer appears in the system logs if I disable the firewall rule that includes a firewall rule schedule

                            (2 of 3) In case the "readjusting service 6969-udp" is because of a torrent tracker in my network: Is this the correct firewall entry in all my VLANs to block it?
                            3c31efcd-c3e6-4786-9171-8c7a5e675fba-image.png

                            (3 of 3) Sorry the wording is not clear to me. Did you mean that I should set "NAT Reflection mode for port forwards" from the current value of "disabled" to "Pure NAT"?

                            @stephenw10 said in NOTICE [Gateway Monitoring] killed policy routing in the log every 15 minutes:

                            As it says there you can override the NAT reflection mode on each port forward so you should check that.

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

                              Oh yes the tftp proxy will do that. That's what it is, no need to worry about other listeners.

                              What you're seeing in the logs is what's expected if you have scheduled rules. The ruleset is reloaded every 15mins to allow for scheduled rule changes.

                              R 1 Reply Last reply
                              Reply Quote 0
                              • R
                                richardsago @stephenw10
                                last edited by

                                Thank you @stephenw10 for the reply. Ok understood that it's tftp proxy.

                                Do I still need to set "NAT Reflection mode for port forwards" from the current value of "disabled" to "Pure NAT"? Sorry if you have already answered this - I think I just did not understand earlier.

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

                                  No you can leave that disabled if you don't need it. That was me mistaking the tftp proxy using xinetd for NAT+Proxy mode nat reflection. No need to make any change.

                                  R 1 Reply Last reply
                                  Reply Quote 0
                                  • R
                                    richardsago @stephenw10
                                    last edited by

                                    Thank you @stephenw10 for giving clarity :)

                                    1 Reply Last reply
                                    Reply Quote 1

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    • First post
                                      Last post
                                    Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                                    Privacy Policy · Cookie Policy