crowdsec-cloudflare-bouncer

crowdsec-cloudflare-bouncer

Docker 应用程序 from mrslaw's Repository

概述

A bouncer that syncs the decisions made by CrowdSec with CloudFlare's firewall. Manages multi user, multi account, multi zone setup. Supports IP, Country and AS scoped decisions.

要求

Create API token and set permisions

https://dash.cloudflare.com/profile/api-tokens
https://raw.githubusercontent.com/crowdsecurity/cs-cloudflare-bouncer/main/docs/assets/token_permissions.png

Obtain `crowdsec_lapi_key` from crowdsec terminal
`cscli -oraw bouncers add cloudflarebouncer`

Create `/crowdsec/bouncers` directory if it doesn't exist
`sudo mkdir /mnt/user/appdata/crowdsec/bouncers`

Create CF bouncer config using token(s), ex. `CLOUDFLARE_API_TOKEN1,CLOUDFLARE_API_TOKEN2`
`docker run --rm crowdsecurity/cloudflare-bouncer -g CLOUDFLARE_API_TOKEN /mnt/user/appdata/crowdsec/bouncers/crowdsec-cloudflare-bouncer.yaml`

Review config and set `crowdsec_lapi_key` , `crowdsec_lapi_url` must be reachable by the container
`sudo nano /mnt/user/appdata/crowdsec/bouncers/crowdsec-cloudflare-bouncer.yaml`

Start the container

运行时参数

网络用户界面
http://[IP]:[PORT:2112]/metrics
网络
bridge
外壳
sh
特权
false

模板配置

AppdataPathrw
目标
/etc/crowdsec
默认值
/mnt/user/appdata/crowdsec/
PortPorttcp
目标
2112
默认值
2112
价值
2112
PUIDVariable
默认值
99
价值
99
UMASKVariable
默认值
022
价值
022
PGIDVariable
默认值
100
价值
100

类别

下载统计数据

396,924
下载总数
14,876
本月
14,439
平均每月

长期下载总量

加载图表...

详细信息

存储库
crowdsecurity/cloudflare-bouncer:latest
最后更新2024-09-16
初见2022-08-22

在Unraid 上运行 crowdsec-cloudflare-bouncer 。

crowdsec-cloudflare-bouncer 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。