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 }