Posted: Wed Apr 14, 2021 18:49 Post subject: Need a custom script to fix flaw in ddwrt, will pay $$$
I need a script/settings solution that will check if the connection is working and if not after 30 seconds will automatically issue the commands below. Im not looking for a prewritten script/hack for *might* help me, just the code equivalent of the button commands i send manually through the ddwrt panel.
I can pay crypto upon delivery of working solution. Its very frustrating to run through those commands multiple times a day so it would be greatly appreciated if anyone can help.
Problem: I have openVPN enabled with this firewall script to prevent vpn bypass:
Code:
iptables -I FORWARD -i br0 -o `nvram get wan_iface` -j DROP
My isp changes my ip frequently causing the connection to drop resulting in no internet. For whatever reason ddwrt devs never considered VPN users dont want them to drop exposing their connection and may also have dynamic IP's.
Joined: 08 May 2018 Posts: 14221 Location: Texas, USA
Posted: Wed Apr 14, 2021 19:12 Post subject:
Since you failed to respond and restore the other thread, it was deleted. Here are quoted posts of advice given from it for posterity:
eibgrad wrote:
Perhaps not ideal, but there is a watchdog feature that will reboot the router automatically if it doesn't get a response from the specified IP(s) within the specified period.
Have no idea how well it works (some of those script are *very* old), but combined w/ my own openvpn watchdog script (see my signature), it may do the job.
egc wrote:
The connection watchdog (Administration/Management/WDS Connection Watchdog) needs an IP address to poll, most of us use 8.8.8.8 (that is google)
-----
It seems you didn't read this post in yet another thread: