Skip to content

nomex/cfwafenabler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Allows to mass modify rules in CloudFlare WAF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published