{# F32 + R87.2 + R87.2b (Hani #1 2026-11-19, "only one rule should be able to do this task"): ONE rule, Network campaigns. It catches every /24 from which many addresses attacked (5+ in 7 days by default) or never answered your servers (10+ in a day), lists them inside it with their attacks, country, AS and holder, and - once switched on with the password - blocks each at the routers' raw table by itself. `netrule` (the rule), `netcaught` (the networks) #} {% if netrule and netcaught %}{% set waiting = netcaught|selectattr('state', 'equalto', 'proposed')|list %}{% set blocked = netcaught|selectattr('state', 'equalto', 'approved')|list %}
{{ fresh_tag("rules:network-rule") }}Network campaigns rule: {{ {'on': 'on', 'off': 'off', 'waiting': 'waiting for approval'}[netrule.state] }} · {{ waiting|length }} network{{ '' if waiting|length == 1 else 's' }} waiting, {{ blocked|length }} blocked.
One rule for every attacking network. When {{ netrule.min_addresses }} or more different addresses of one /24 attack you within 7 days (blocked, an attack verdict, confirmed by the local AI), or 10 never answer your servers within a day (a SYN flood), the rule catches the whole /24. A network that attacked on 3 or more different days in the last 30 (network memory) is caught at 3 addresses - except home-internet and mobile networks. Blocking address by address does not work - they rotate. The network's AS is shown, never blocked. Networks with your own, inventory or trusted addresses are never caught.