Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mcmonap

#1
General Discussion / CRON - Periodic interface reset
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.
#2
Web Proxy Filtering and Caching / Squid proxy scheduling
February 24, 2024, 01:41:20 PM
Hi

I think that @Fright suggested https://forum.opnsense.org/index.php?topic=22700.0 that scheduling proxy exclusions (for example gaming before school) could be achieved by modifying the squid.conf.  This makes sense but the file header says it is auto-generated.  Can someone advise when the file is auto-generated please?  Is it only during modification in the GUI or is when the service restarts or when OPNsense restarts or something else entirely.  Hopefully it is the first and I can just keep my fingers out of the GUI.

Thanks.