other:cloudflare:users

Configure the Cloudflare API accounts for use with the CloudFlare Firewall.

juggernaut --task=other:cloudflare:users --oper=<user_add|user_edit|user_del> --user=<string>
Option
Value Default Description
--oper <string> The operation you want to perform. Operations: user_add, user_edit, user_del
--domain <string> Domain name or enter "any" to match all triggers regardless of domain name.
--user <string> A unique name for the entry, but does not have to be a local linux account name.
--cfaccount <string> The Cloudflare login user (email address).
--cfapikey <string> The Cloudflare Client API Key.
--restart <yes> Restart the service after saving settings.

Examples

// add an entry
juggernaut --task=other:cloudflare:users --oper=user_add --domain=any --user=SOMEUSER --cfaccount=XXXXXX --cfapikey=XXXXXX --restart=yes

// remove an entry
juggernaut --task=other:cloudflare:users --oper=user_del --user=SOMEUSER

// add the Cloudflare account for a specific domain so blocks apply there only
juggernaut --task=other:cloudflare:users --oper=user_add --domain=example.com --user=EXAMPLECOM --cfaccount=api@example.com --cfapikey=XXXXXX --restart=yes

Related Pages