Skip to main content

Allows to mass modify rules in CloudFlare WAF

Project description

cfwafenabler

CloudFlare doesn't allow to set their entire WAF in Simulate mode. Instead, they suggest you to use the API. cfwafenabler allows you to mass-modify all the rules to put your WAF in Simulate mode

Installation

To install cfwafenabler just use pipx

pipx install cfwafenabler

Usage

Before executing cfwafenabler, you need to set some CloudFlare environment variables. If you use API key ( global permissions ) you need to set:

export CF_API_EMAIL=your@email.com
export CF_API_KEY=YouApiKey

If you are using CloudFlare API tokens, you only need to set (it's the same env variable, they reuse it):

export CF_API_KEY=YouApiToken

This token needs the following permissions:

Zone.Zone:Read, Zone.Firewall Services:Edit

Credits

Based in canozokur's work.

This package was created with Cookiecutter and the byt3bl33d3r/pythoncookie project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfwafenabler-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

cfwafenabler-0.0.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page