NOTICE [Gateway Monitoring] killed policy routing in the log every 15 minutes
-
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 failoverStarLinkThere 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:

WAN2 has gateway of 192.168.3.1 and monitor IP of 8.8.4.4:

The two failover setup in gateway groups:

The gateway monitoring under System > Advanced > Miscellaneous:

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]

Edited to include the two failover details:
WAN1

WAN2

-
Do you have any firewall rule schedules active? That looks like the pattern you see for scheduled rules.
-
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:

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:

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

In case useful for diagnosis this is System > Advanced > Miscellaneous:

Edited to include: here's the firewall rule where this firewall rule schedule is used and nowhere else:

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:

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 -
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:

-
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 -
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 :

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.
-
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?
-
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.logIf 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.
-
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.
-
Thank you @Gertjan and @stephenw10 for the replies. The "NAT Reflection mode for port forwards" has value of "Disabled"

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

1:1

Outbound

NPt

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

Status > System > General

This is the last lines from Status > System > DNS Resolver that corresponds to the output of tail -f /var/log/resolver.log

-
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.
-
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:

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?

(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.
-
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.
-
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.
-
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.
-
Thank you @stephenw10 for giving clarity :)
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 LoginPrivacy Policy · Cookie Policy