Provide Stupid Errors, Get Stupid Workarounds So, I have a Ubiquiti UX7 Cloud Ga...
RealGene ☣️ @RealGene@hachyderm.io
Provide Stupid Errors, Get Stupid Workarounds
So, I have a Ubiquiti UX7 Cloud Gateway, which I am generally happy with, except my logs are filled with "client disconnected" messages.
Now, in some cases, this makes perfect sense; I have a bunch of IoT devices, and quite a few of them go offline and stop transmitting on WiFi to save power/reduce heating.
But I was getting a persistent "Wired Client Disconnected" (WCD) from an old Linksys router I'm using in the basement to create a subnet for another purpose.
It's an old E1000 I flashed with DD-WRT years ago, and it's generally reliable. I have its radio disabled, only using it to provide web access to a second #HomeAssistant server I'm playing with.
The WAN/uplink port of the E1000 is connected to my Ubiquiti-managed LAN, and the UX7 hands it a fixed IP address.
Everything worked fine, except I would get a WCD message in the log, occurring on average every hour, but not exactly; sometimes ~45 minutes apart, sometimes 90 minutes or so.
It seems that the UX7 uses inactivity, not actual loss of connectivity, as the trigger for the disco messages.
So, I did the only reasonable thing: DD-WRT lets you create #cron jobs right in its web interface. It took a couple of tries, because it's necessary to put "root" in front of any command you want the Busy Box cron to execute, but I simply have it send a single ping to the UX7 every three minutes.
That worked, no more WCD's from the E1000.
I'll probably try increasing the interval to say, 15 minutes over the next few days.