Script help request

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
StevenShelby
DD-WRT Novice


Joined: 09 Sep 2020
Posts: 1

PostPosted: Wed Sep 09, 2020 8:28    Post subject: Script help request Reply with quote
We are running several Netgear WNR3500NL routers, with DD-WRT 40559-giga firmware.

Is there any way to make a script that would ping an IP address regularly and any time the average response time of 3-4 successive pings was greater than 700ms it would reboot the router?

Thanks
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 6620
Location: Netherlands

PostPosted: Wed Sep 09, 2020 8:47    Post subject: Reply with quote
Welcome to the forum

First of all 40599 is an old and crappy build.

See the forum guide lines, link in my signature where to find builds (and other very useful information).

DDWRT has a build in script to reboot the router if a connection is "lost", I know it at least does two pings I do not know at what value the time out is set

Under Administration/Keep Alive enable WDS/Connection Watchdog you can set 3 IP addressees I use 8.8.8.8

There is a script for OpenVPN which you can perhaps modify to your needs see third post of this thread: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
OpenVPN Policy Based Routing: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard Server setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
Wireguard Client setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324624
Wireguard Advanced setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324787
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum