Juggernaut Firewall 4.03 comes with a new command line interface (CLI) that you can use to configure it from the command line. You can view the full CLI documentation here.
Important
- Option values should be set using the equal sign (=).
- If an option value has spaces or semicolons then the value should be wrapped in single quotes.
- If an option value needs single quotes then the value should be wrapped in single quotes with value single quotes properly escaped replacing a single quote with '\''
- Options are case sensitive.
Run the following command for more information:
juggernaut --task=help
Minion is a cli tool for performing tasks
Usage:
/usr/local/sbin/juggernaut --task={task} --option1=value1 --option2=value2
Where {task} is one of the following:
* application:about
* application:application
* application:geolocation
* application:maintenance
* application:maintenance:database
* application:networktools
* application:permissions
* application:setup
* firewall:disableserverips
* firewall:docker
* firewall:general
* firewall:initial
* firewall:logging
* firewall:port
* firewall:portflood
* firewall:portipredirection
* firewall:portknocking
* firewall:smtp
* help
* lfd:allow
* lfd:clustering
* lfd:country
* lfd:directorywatching
* lfd:directorywatching:paths
* lfd:globallists
* lfd:ignore
* lfd:ipblocklists
* lfd:loginfailureblocking
* lfd:loginfailurecustomtriggers
* lfd:logscanner
* lfd:logscanner:logs
* lfd:messenger
* lfd:netblock
* lfd:rblcheck
* lfd:reporting
* lfd:statistics
* lfd:tracking:account
* lfd:tracking:connection
* lfd:tracking:distributedattack
* lfd:tracking:login
* lfd:tracking:portscan
* lfd:tracking:process
* lfd:tracking:userid
* other:binarylocations
* other:cloudflare
* other:cloudflare:users
* other:debug
* other:loglocations
* other:port
* webserver:policy
* webserver:policy:webmail
For more information on what a task does and usage details execute:
/usr/local/sbin/juggernaut --task={task} --help
Examples using the CLI:
// install the juggernaut extension
plesk bin extension --install juggernaut
// Run the setup wizard to active the extension license, run the application installer, and configure the application
/usr/local/psa/admin/bin/modules/juggernaut/minion --task=application:setup --license_key=XXXXXX
// add a hostname to rdns ignore then restart the firewall and login failure daemon
/usr/local/psa/admin/sbin/modules/juggernaut/minion --task=lfd:ignore --oper=rdns_add --value='test.example.com' --comment='this is a comment' --restart=yes