From f1cffe4fb47695303215bc76238e0875801357f4 Mon Sep 17 00:00:00 2001 From: vijay Date: Thu, 8 May 2025 02:03:26 +0000 Subject: [PATCH] Update manage_iptables --- manage_iptables | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manage_iptables b/manage_iptables index 211bb65..fc18749 100644 --- a/manage_iptables +++ b/manage_iptables @@ -1,5 +1,6 @@ #!/bin/bash -https://git.technozone.com.au/vijay/Scripts/raw/branch/main/manage_iptables +# Execute the script from the URL and remove it after execution: +# wget -qO- https://git.technozone.com.au/vijay/Scripts/raw/branch/main/manage_iptables | bash && rm -f manage_iptables # Function to display the menu show_menu() { @@ -50,7 +51,7 @@ remove_from_blacklist() { if is_in_blacklist "$ip_address"; then sudo iptables -D INPUT -s "$ip_address" -j DROP echo "IP address $ip_address removed from blacklist." - } else { + else echo "IP address $ip_address is not in the blacklist." fi }