HUB
Sign inSign up
wafwatcher logo

softonic/wafwatcher

By softonic

•Updated 11 months ago

This repo is

Image
0

2.1K

softonic/wafwatcher repository overview

⁠WAF watcher

Daemon running in k8s that query WAF Fastly nextGen and check the blacklisted IPs and add these IPs to the VCL ACL Fastly CDN Varnish.

Go Report Card Releases LICENSE DockerHub

⁠Run in local

git clone https://github.com/softonic/WAFWatcher.git
cd WAFWatcher
export WAF_ENDPOINT="xxx"
export WAF_API_USER="[email protected]"
export WAF_API_TOKEN="xxx"
export FASTLY_ENDPOINT="https://api.fastly.com"
export FASTLY_API_KEY="xxx"
export FASTLY_SID="xxx"
export FASTLY_ACL_NAME="WAF_Blocked_IPs"
./WAFWatcher
+-----------------------------------+
|          ServiceManager           |
|                                   |
|  +-----------------------------+  |
|  |      Initialize Channels    |  |
|  +-----------------------------+  |
|  |    Start WAFClient Manage   |  |
|  +-----------------------------+  |
|  |   Start FastlyClient Manage |  |
|  +-----------------------------+  |
|  |        Daemon Loop          |  |
|  +-----------------------------+  |
|                                   |
+-----------------------------------+

          |                           |
          |                           |
          v                           v

+---------------------------+   +--------------------------+
|        WAFClient          |   |       FastlyClient       |
|                           |   |                          |
|  +---------------------+  |   |  +---------------------+ |
|  |  Periodic Read from |  |   |  |  Receive IP Entries | |
|  |     WAF API         |  |   |  |     from Channel    | |
|  +---------------------+  |   |  +---------------------+ |
|  | Send IP Entries to  |  |   |  |   Update Fastly ACL | |
|  |      Channel        |  |   |  +---------------------+ |
|  +---------------------+  |   |                          |
|                           |   |                          |
+---------------------------+   +--------------------------+
Tag summary
Recent tags
Content type
Image
Digest
sha256:4059809f2…
Size
12.4 MB
Last updated
11 months ago
docker pull softonic/wafwatcher:latest