Skip to content

Instantly share code, notes, and snippets.

@KiNgMaR
KiNgMaR / cloudflare-ipset.sh
Last active January 18, 2025 11:57
Cloudflare IPTABLES and IPSET scripts - fixed 2022-02-23
#!/bin/bash
# name of the ipset - v4 or v6 will be appended.
IPSET_NAME=cloudflare-
# argument: v4 or v6 (defaults to v4)
cloudflare_ipset ()
{
local ipv
local inetv