#!/bin/sh # # darklist.de - blacklisted ips (iptables script) # generated on 27.04.2024 11:58 # # Execute the following commands once to prepare the blacklist: # iptables -N BLACKLIST # iptables -I INPUT -j BLACKLIST # iptables -I FORWARD -j BLACKLIST # # Then run the script. # # flush the chain first iptables -F BLACKLIST # networks # single hosts # return to basic chain iptables -A BLACKLIST -j RETURN