Installing on-boot-script on the UDM Pro ( Dream Machine Pro )
The UDM Pro isn’t so “pro” since there are some essential features missing from the UI interface (eg: SNAT / DNAT ) nonetheless we can “hack” our way into getting what we want -ish.
On this page
There is a fantastic project/effort on GitHub to allow users to run scripts on the boot of the UDM Pro, we will use this to our advantage!
We are particularly interested in the on-boot-script
SSH’ing into the UDM
SSH into the UDM with the credentials configured under “Console Settings”
Installing on-boot-script on the UDM-Pro
NOTE: 04/2023: the location has changed from /mnt/data to /data, so screenshots are out of date
check out the contents of remote_install.sh and if it is to your liking, lets do the thing everyone tells us not to do, pipe it directly into the shell 🙈
curl -fsL "https://raw.githubusercontent.com/unifi-utilities/unifios-utilities/HEAD/on-boot-script/remote_install.sh" | /bin/sh
Once done, upon boot, it will now execute scripts in /data/on_boot.d/
Things you can now do: