Its been a while since i have been tinkering with idea to use the PHP for advance configuration of Routers, NAS and any device on the LAN / WAN using http1.1 on Port 80 forwarded to Synology NAS Webserver..
am able to achieve the following
1. reboot the NAS, Router etc based on Events in the Cameras
2. Reconfigure the NAS, Router based on specific Events
the use of PHP is because its commonly available on most NAS having a webserver and would not require any further configuration.. and the PHP pages can be pulled through simple URL http://192.168.1.40/reboot_router.php or http://192.168.1.40/reboot_nas.php
However the Telnet on PHP is more of art than Science and SSH is not available on PHP.. ? further the User Name & Password are plain text, hence may pose a security risk.
With the official Release of PYTHON on the Synology NAS, we could think of using the PYTHON where SSH and TELNET lib are available.
Those who have a a fair PHP or PYTHON experience pls contact me for collaboration.
my night build to reboot the Nas is available _telnetNAS_example.php: Click here