You might want to monitor your Internet connectivity. The simplest way to do this is to run a custom task script in, for example: Administration/Scheduler/Custom 1
The basic command would be something like:
/bin/ping -q -c1 18.104.22.168
(22.214.171.124. is a google DNS server) which would cover the monitoring part without performing any action.
In order to link an action to a success (&&) or failure (||) we will append the wanted condition and the command.
#if ping fails, restart the wan. /bin/ping -q -c1 126.96.36.199 || /sbin/service wan restart # if ping fails, reboot the device. /bin/ping -q -c1 188.8.131.52 || /sbin/reboot # successful pings will log "Internet Available" where ping failures will log "Internet unavailable". /bin/ping -q -c1 184.108.40.206 && /usr/bin/logger "Internet available" || /usr/bin/logger "Internet unavailable"