How can I configure Juggernaut Firewall from the command line to make changes across multiple servers or when using automated deployment tools like Ansible?

Overview

Juggernaut Firewall provides a command-line interface (CLI) designed for automated deployments, bulk server configuration, and integration with infrastructure management tools such as Ansible. For complete reference documentation, visit the official CLI guide: Juggernaut CLI Documentation.

Syntax and Configuration Rules

  • Assign option values using the equals sign (=).
  • Enclose values containing spaces or semicolons in single quotes.
  • If a value requires literal single quotes, wrap it in single quotes and escape internal quotes by replacing each with '\''.
  • All options are case-sensitive.

Available Tasks

To display the full list of supported tasks and usage details, execute the following command:

Usage:

juggernaut --task={task} --option1=value1 --option2=value2

Where {task} is one of the following:

  * application:about
  * application:application
  * application:dashboard
  * application:geolocation
  * application:license
  * application:maintenance
  * application:maintenance:database
  * application:networktools
  * application:permissions
  * application:setup
  * application:update
  * 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:

juggernaut --task={task} --help

Configuration Examples

The following examples demonstrate common CLI operations:

// install the juggernaut extension
plesk bin extension --install-url https://www.danami.com/clients/downloads/juggernaut.zip

// Run the setup wizard to active the extension license, run the application installer, and configure the application
juggernaut --task=application:setup --license_key=XXXXXX

// add a hostname to rdns ignore then restart the firewall and login failure daemon
juggernaut --task=lfd:ignore --oper=rdns_add --value='test.example.com' --comment='this is a comment' --restart=yes

Troubleshooting and Common Issues

  • Syntax Errors: Verify that all option values use the equals sign (=) and that special characters are properly quoted or escaped according to the syntax rules above.
  • Task Not Found: Ensure the specified task matches the exact case-sensitive naming convention listed in the available tasks output.
  • Detailed Task Help: If a command fails or requires additional parameters, run juggernaut --task={task} --help to view specific usage instructions for that module.
  • Service Restarts: When modifying firewall rules or daemon configurations, explicitly include the --restart=yes flag if immediate application of changes is required.
  • cli, ansible
  • 0 Pengguna Menemukan Ini Berguna
Apakah jawaban ini membantu?

Artikel Terkait

Where are the configuration files for Juggernaut Firewall located?

Configuration files are located in the /etc/csf/ directory with the main firewall configuration...

Can I use Juggernaut Firewall to block Wordpress bruteforce attacks?

Yes we support blocking attacks like these very easily. See below for more information: How can...

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...

How can I get detailed help about a specific setting?

Overview This article outlines how to access contextual assistance and detailed configuration...