other:cloudflare

Enable interaction with the Cloudflare firewall using the Cloudflare API.

juggernaut --task=other:cloudflare
Option
Value Default Description
--CF_ENABLE <1|0> 0 Enable the Cloudflare Firewall. Cloudflare have provided a Firewall feature within the user account where rules can be added to block, challenge or whitelist IP addresses. Using the Cloudflare API, this feature adds and removes attacking IPs from that firewall and provides CLI (and via the UI) additional commands.
--CF_BLOCK <block|challenge> block This can be set to either "block" or "challenge" (see Cloudflare docs).
--CF_TEMP <digit> 3600 This setting determines how long the temporary block will apply within csf and Cloudflare, keeping them in sync. Block duration in seconds - overrides perm block or time of individual blocks in lfd for block triggers.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--restart <yes> Restart the service after saving settings.

Examples

// enable Cloudflare
juggernaut --task=other:cloudflare --CF_ENABLE=1 --restart=yes

// reset CF_ENABLE to default
juggernaut --task=other:cloudflare --default_option=CF_ENABLE --restart=yes

// reset all settings back to default
juggernaut --task=other:cloudflare --default=yes --restart=yes