- Open DSM on your Synology NAS
- Save the above file to your Synology NAS
- Open Control Panel and click on
Task Scheduler
- Click
Create button
->Triggered Task
->User defined script
- Give it a name, select "root" for
User
and "Boot-up" forEvent
, tickEnabled
- Click
Task Settings
, paste "bash /volume1/path to script" on theUser-defined script
- Click
OK
button and you're done! The script will run after every reboot and should survive any updates of DSM!
Please check the following post:
https://www.pedrolamas.com/2020/11/04/exposing-the-client-ips-to-docker-containers-on-synology-nas/