internetarchive / internetarchive/openlibrary

Fail2Ban Upgrade: Update monitoring to use `sudo ipset list f2b-HTTP429`

Open
#12,334 2 comments 1 reaction 2 assignees Claimed by @mekarpeles View on GitHub
Affects: Operations Lead: @cdrini Needs: Staff / Internal Priority: 2 Type: Subtask of Epic
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

## Parent issue
Part of #12332 — Upgrade fail2ban to 1.1.0-8 with `iptables-ipset-proto6` banaction.

## Task
Update monitoring scripts/dashboards to use the new ipset-based verification command (dummy IPs provided just as examples):

```bash
sudo ipset list f2b-HTTP429
Name: f2b-HTTP429
Type: hash:ip
Revision: 4
Header: family inet hashsize 1024 maxelem 65536 timeout 0
Size in memory: 49544
References: 1
Number of entries: 468
Members:
1.1.1.1 timeout 0
2.2.2.2 timeout 0
```

Previously, fail2ban status was checked via `sudo fail2ban-client status nginx-429`. With the switch to `iptables-ipset-proto6`, the ipset list is the authoritative source for banned IPs.

This may involve updating Grafana dashboards, alerting scripts, or any runbooks that reference the old check command.

This issue requires upgrading https://github.com/internetarchive/openlibrary/pull/12251 t

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.