IPS

Blocklists for iptables / ipset

Classic Linux firewall setup: load the addresses into an ipset and drop matching traffic.

5compatible lists
1supported formats
10categories

Adding a blocklist to iptables / ipset

ipset create blocklist hash:net -exist
curl -fsSL "https://www.team-cymru.org/Services/Bogons/fullbogons-ipv6.txt" | grep -Eo '^[0-9]{1,3}(.[0-9]{1,3}){3}(/[0-9]{1,2})?' | 
  while read -r net; do ipset add blocklist "$net" -exist; done
iptables -I INPUT  -m set --match-set blocklist src -j DROP
iptables -I FORWARD -m set --match-set blocklist src -j DROP

Persist the set and re-run the download from cron to keep it current:

ipset save blocklist -f /etc/ipset.blocklist
# /etc/cron.daily/blocklist

The address shown above is an example. Every list in the directory has its own URL, which you can copy with one click.

By topic

All 5 lists for iptables / ipset

Submit a list
5 lists < 7 days < 30 days older

Cloudflare IPv4 ranges, meant as an allowlist.

Allowlist IP / CIDR
15 entries
±0 last change
updated
FHIPSMTWRTOPN+2

Cloudflare IPv6 ranges, meant as an allowlist.

Allowlist IP / CIDR
7 entries
±0 last change
updated
FHIPSMTWRTOPN+2

Filter list covering allowlist. Format: Socks5. See the project homepage for details and inclusion criteria.

Allowlist IP / CIDR
2,211 entries
+60 -60 last change
updated
FHIPSMTWRTOPN+3

Shub’s Whitelist

by DevShubam

Filter list covering allowlist. Format: IPs (IPv4). Maintained by DevShubam. See the project homepage for details and inclusion criteria.

Allowlist IP / CIDR
114 entries
±0 last change
updated
FHIPSMTWRTOPN+3

Filter list covering allowlist. Format: IPs (IPv4). Maintained by Wu Tingfeng. See the project homepage for details and inclusion criteria.

Allowlist IP / CIDR
100 entries
+89 -89 last change
updated
FHIPSMTWRTOPN+3
Scroll to Top