OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: AK_Astro on March 02, 2023, 06:59:56 PM

Title: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: AK_Astro on March 02, 2023, 06:59:56 PM
Hello, running latest OPNsense 23.1.1_2-amd64 on a dedicated mini-PC router with two WAN gateways configured for failover Tier 1 and 2 according to the documentation.

I've been having this issue for several weeks that dpinger needs to be frequently restarted from the dashboard manually or it won't detect that the Tier 1 network is back up. Sometimes dpinger appears green and sometimes it's fully stopped and red. My Tier 1 is starlink which is rather spotty (frequent 1-10s interruptions here in Alaska).

Is there anywhere I can tune dpinger to be more aggressive in rechecking for good gateway?

An easy band aid fix would be a cron job that resets dpinger every 5 min or so but that's not ideal and not an option under the cron menu.

Any help or pointers would be greatly appreciated. Please let me know if I need more info to be able to be helped.
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: AK_Astro on March 06, 2023, 03:27:17 AM
Any possible ideas why dpinger appears to get stuck "offline"? I just had a 45 min outage on my Tier 1 and had to manually restart it (totally off and red) and it immediately recognized as online. Very frustrating.
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: Kaeltis on March 06, 2023, 05:48:52 PM
This has happened to me as well when I still had fail over set up.
Since my main connection only failed rarely, I "solved" the issue by rebooting the firewall every night, but yeah, very annoying and would love to see a solution.
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: axsdenied on March 06, 2023, 05:57:36 PM
It sounds like you're experiencing the same issue I have described here:

https://forum.opnsense.org/index.php?topic=32490.msg157169#msg157169

I brought this up awhile ago and there have been no responses from the community or devs unfortunately.  Would love to identify the root cause as either a bug, configuration issue or maybe my stupidity.  Whichever confirmation would help :)
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: AK_Astro on March 06, 2023, 09:00:52 PM
Hmm that looks like a similar situation but I don't need to reboot the whole router, just the dpinger service. If I had the skillset to write a script to restart it on a certain time frequency that would be a workable bandaid for myself. Or even knowing how to add it to the list of cron jobs.
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: Greelan on March 06, 2023, 09:11:41 PM
This may help you: https://forum.opnsense.org/index.php?topic=18745.msg97953#msg97953
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: AK_Astro on March 07, 2023, 05:42:49 AM
Quote from: Greelan on March 06, 2023, 09:11:41 PM
This may help you: https://forum.opnsense.org/index.php?topic=18745.msg97953#msg97953

Thanks, I'll take a look.
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: lzamel on March 07, 2023, 09:15:36 AM
I was observing similar (if not exactly the same) behavior. It all stopped after I correctly set System: Settings: General: DNS servers
By correct I mean each GW is listed and uses same DNS server as one used to monitor status.
I didn't debug why this helped on my setup, but I haven't seen dpinger stuck since.
Title: Re: dpinger Needs Frequent Manual Restarts - Multi-WAN
Post by: AK_Astro on March 07, 2023, 10:07:19 PM
Interesting, they have been the same (different monitor source for each gateway, but matched in both settings pages) already.