Update manage_iptables
This commit is contained in:
parent
dcd5f62cfc
commit
f1cffe4fb4
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user