Reading openwrt-19.07.4-octeon-er-initramfs-kernel.bin Octeon ubnt_e220# fatload usb 0:1 $(loadaddr) openwrt-19.07.4-octeon-er-initramfs-kernel.bin If you done everything correctly, checking the configuration on your USG will show the scheduled task applied, and every morning at 4:30 AM the USG will update the blacklist.Scanning bus for devices. Once you uploaded the file, open your Unifi Controller management interface, and do a force provision on your USG (Devices – USG – Config tab and Force Provision). If you are interested in how to configure Unifi Controller on your NAS, you may check out my documentation in this post. If you are running the controller on your Synology NAS (like me), you have to upload the file to: Controller\ 5/data/sites/ If you are running your controller on a supported platform, follow Ubiquiti’s guide to locate your controller’s data directory and place the file there. I am going to save some time for you, because Unifi is under documented how to create a custom file to apply customizations in your environment and this file is syntax sensitive which means, if there is any syntax issue in the file, it can break your USG (see disclaimer on top of the post).ĭownload this file, and copy to your controller’s data directory. If you want to go on, I suggest to keep reading and in the meantime, remove the newly created scheduled task from your USG, to delete use: sudo -iĮxit Adding the configuration to your Unifi Controller So if you never going to update or reprovision your devices (unlikely), you can leave it. So to make it permanent, you have to add this scheduled task definition to your controller. This configuration exists in your USG until a firmware upgrade or re-provision happen. There is a little issue with this configuration. Now if you issue the following command, you will notice that the scheduled task is created in your USG’s configuration: mca-ctrl -t dump-cfg Set system-task-scheduler task crontab-spec "30 4 * * *" (setting the time when the task will run 4:30 AM every day) Set system task-scheduler task executable path /config/scripts/getBlacklistHosts.sh (creating a scheduled task to run the command) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |