OpenWRT restart if Google connection fails

Hello, after about 1 Day my OpenWRT router looses Connection to VPN, i always need to restart it manually, i found this Script which perfectly describe my Problem, i just got a Problem, how can i initiate it in my Router? or maybe also this script with a full router restart if google isnt reachable?

I think OpenWrt has a package called luci-app-watchcat that monitors the connection and reboots the router if there is no connection: https://openwrt.org/docs/guide-user/advanced/watchcat

I haven't tried it myself on the latest version of OpenWrt and don't know if it applies for your specific requirements, but it's something to start from.

It seems much easier to install and use through the LuCi interface.

To install it:

  1. Go to LuCi > System > Software
  2. Click on Update lists...
  3. Type luci-app-watchcat in the search
  4. Install the app
3 Likes