modernleft-docs/utilities/fail2ban-manager/plugins/cloudflare.md

114 lines
1.9 KiB
Markdown
Raw Normal View History

2025-01-17 16:27:10 +00:00
---
title: fail2ban-manager plugin - cloudflare
draft: true
date: 2025-01-16
---
2025-01-13 04:17:24 +00:00
**Usage**:
```console
$ fail2ban-manager cloudflare [OPTIONS] COMMAND [ARGS]...
```
**Options**:
- `--help`: Show this message and exit.
**Commands**:
- `zones`: List configured zones
- `zone-info`: Show information about a zone.
- `create-zone`: Create a new zone in the database.
- `check-ip`: Check if an IP is banned based on rules...
- `ban`: Check if an IP is banned based on rules...
## `fail2ban-manager cloudflare zones`
List configured zones
**Usage**:
```console
$ fail2ban-manager cloudflare zones [OPTIONS]
```
**Options**:
- `--help`: Show this message and exit.
## `fail2ban-manager cloudflare zone-info`
Show information about a zone.
This command will pull the rules from Cloudflare and update the database as well as display the rules in a table.
**Usage**:
```console
$ fail2ban-manager cloudflare zone-info [OPTIONS] ZONE_ID
```
**Arguments**:
- `ZONE_ID`: [required]
**Options**:
- `--help`: Show this message and exit.
## `fail2ban-manager cloudflare create-zone`
Create a new zone in the database.
**Usage**:
```console
$ fail2ban-manager cloudflare create-zone [OPTIONS] ZONE_ID NAME
```
**Arguments**:
- `ZONE_ID`: [required]
- `NAME`: [required]
**Options**:
- `--help`: Show this message and exit.
## `fail2ban-manager cloudflare check-ip`
Check if an IP is banned based on rules cached in the database.
**Usage**:
```console
$ fail2ban-manager cloudflare check-ip [OPTIONS] IP
```
**Arguments**:
- `IP`: IP Address to check [required]
**Options**:
- `--help`: Show this message and exit.
## `fail2ban-manager cloudflare ban`
Check if an IP is banned based on rules cached in the database.
**Usage**:
```console
$ fail2ban-manager cloudflare ban [OPTIONS] ZONE_ID IP
```
**Arguments**:
- `ZONE_ID`: [required]
- `IP`: IP Address to ban [required]
**Options**:
- `--help`: Show this message and exit.