🛒 More SmartTasks
👍 Tested to be working with R81.20+
SmartTask to verify SSH/Gaia WebUI clients are not set to 'Any'.
Script code
Copy the code below into a new script of your SmartConsole script repository.
test `grep "ALL: ALL" /etc/hosts.allow|wc -l` -ne 0 && echo '{"result":"failure","message":"SSH/Gaia WebUI access on '$(hostname)' must not be set to: Any"}' || echo '{"result":"success"}'
SmartTask
Create a new SmartTask in SmartConsole > Manage & Settings > SmartTasks and install policy to activate the new task.
Name |
Trigger |
Action |
Enabled |
Task_GaiaAnyCheck |
Before Publish |
Run Script |
✔️ |