From dfc6a8c08e27d2d02561d73dce7b6caacc34a05a Mon Sep 17 00:00:00 2001 From: Marek Miklewicz <86836305+marsonpl@users.noreply.github.com> Date: Fri, 13 May 2022 22:31:40 +0200 Subject: [PATCH] Create csfcf.sh --- csfcf.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 csfcf.sh diff --git a/csfcf.sh b/csfcf.sh new file mode 100644 index 0000000..aa73c9e --- /dev/null +++ b/csfcf.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +IPS=`curl -s https://www.cloudflare.com/ips-v4` +IPS+=`echo -e "\n" && curl -s https://www.cloudflare.com/ips-v6` + +for ip in ${IPS}; do + sudo csf -a $ip +done + +sudo csf -r