As I am behind a double NAT, I am running a custom script to update my IP address.
The script that I installed is: https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts#asus
I put it in ddns-start, and made all the settings as indicated on the Merlin "custom scripts" page.
When I run this script manually through SSH ("sh ddns-script"), then the update is successful.
When I let the router do an automatic update after a reboot, it fails!
Here is the log file:
Jan 19 17:49:20 custom_script: Running /jffs/scripts/ddns-start (args: 192.168.1.217)
Jan 19 17:49:21 ddns: Custom ddns update failed
Jan 19 17:49:50 watchdog: start ddns.
Jan 19 17:49:50 rc_service: watchdog 289:notify_rc start_ddns
Jan 19 17:49:50 custom_script: Running /jffs/scripts/ddns-start (args: 192.168.1.217)
Jan 19 17:49:51 ddns: Custom ddns update failed
<logging in to the router Putty, entering manual command >
Jan 19 17:49:53 dropbear[1124]: Child connection from 192.168.69.215:61727
Jan 19 17:49:57 dropbear[1124]: Pubkey auth succeeded for 'admin' with key sha1!! XXX from 192.168.69.215:61727
Jan 19 17:50:12 ddns: Completed custom ddns update
Why would a script fail when running in the background, but succeed when running manually???
Thanks in advance for any input.
The script that I installed is: https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts#asus
I put it in ddns-start, and made all the settings as indicated on the Merlin "custom scripts" page.
When I run this script manually through SSH ("sh ddns-script"), then the update is successful.
When I let the router do an automatic update after a reboot, it fails!
Here is the log file:
Jan 19 17:49:20 custom_script: Running /jffs/scripts/ddns-start (args: 192.168.1.217)
Jan 19 17:49:21 ddns: Custom ddns update failed
Jan 19 17:49:50 watchdog: start ddns.
Jan 19 17:49:50 rc_service: watchdog 289:notify_rc start_ddns
Jan 19 17:49:50 custom_script: Running /jffs/scripts/ddns-start (args: 192.168.1.217)
Jan 19 17:49:51 ddns: Custom ddns update failed
<logging in to the router Putty, entering manual command >
Jan 19 17:49:53 dropbear[1124]: Child connection from 192.168.69.215:61727
Jan 19 17:49:57 dropbear[1124]: Pubkey auth succeeded for 'admin' with key sha1!! XXX from 192.168.69.215:61727
Jan 19 17:50:12 ddns: Completed custom ddns update
Why would a script fail when running in the background, but succeed when running manually???
Thanks in advance for any input.