OPNsense Forum

English Forums => General Discussion => Topic started by: mcmonap on February 20, 2026, 02:46:53 PM

Title: CRON - Periodic interface reset
Post by: mcmonap on February 20, 2026, 02:46:53 PM
Hi, Just after a little advice regarding the above CRON job.

I recently swapped ISPs from cable (Virgin Media UK) to FTTP (Vodafone).  I quickly realised I was seeing an hour of outage every morning between 0300 and 0400 - ultimately not a major issue for me at home but curious.  Google and Gemini definitively and unequivocally informed me that it was because the ISP was renewing IPs and connections and it is typical, normal behaviour on a daily basis.  However it did think an hour was a long period of time for this to occur over - based on the logs I provided it thought that obviously this was because I had gateway monitoring enabled - the monitoring saw the gateway was down, tried to bring it up, panicked and restarted the connection process every minute - unfortunately a minute wasn't long enough for the process to complete so I was cycling through these loops trying to restore connection but giving up before a connection had time to complete.

Unsurprisingly (you would have thought I would have learnt by now) the firm, clear assurances of AI are as reliable and trustworthy as those of many of today's politicians.  I found instead that the above CRON job appears to be the route cause of my issue, by removing the job I no longer have an outage.  I used this for years without issue on my cable connection - obviously different hardware with a the ISPs modem upstream of my router previously whilst now my router is connected to the FTTP ONT.  Based on the logs (attached) it does appear the AI may had some valid points - it appears to be the interface reset process that isn't patient enough in waiting for upstream to reset and it appears that the process gives up after an hour which finally allows the connection to re-establish successfully.

So my questions are:
1. Why is this happening?
2. Should I no longer bother resetting by WAN interface (I can't really remember why I chose to do this in the first place!)
3. If I should reset the WAN interface are there tunables that could help with how the process behaves? (I looked here: https://docs.opnsense.org/manual/settingsmenu.html#cron but couldn't see anything really relevant)

Thanks in advance for any comments or pointers to information.
Title: Re: CRON - Periodic interface reset
Post by: nero355 on February 20, 2026, 03:20:14 PM
This topic was talking about the same cronjob a while ago : https://forum.opnsense.org/index.php?topic=50446.0

From what I have understood there it's more something that's used to force WAN DHCP Renewal for example and not needed for a stable working connection.

So I think you don't need it anymore.