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!
unifi-utilities/unifios-utilities
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”
![](https://cln.io/blog/wp-content/uploads/2022/09/image-42.png)
![](https://cln.io/blog/wp-content/uploads/2022/09/image-39.png)
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
![](https://cln.io/blog/wp-content/uploads/2022/09/AnyDesk_tLpYmV2a1n-1024x670.png)
Once done, upon boot, it will now execute scripts in /data/on_boot.d/
Things you can now do:
- Run cron jobs (guide here)
- Run Tailscale (guide here)
![](https://cln.io/blog/wp-content/uploads/2022/09/thomas-jensen-h3vT1Kp0FxA-unsplash-1024x681.jpg)