Eintrag in die iptables

satriani

Registered User
Hallo,

wie trage das
Code:
#!/bin/sh
IPTABLES="/usr/sbin/iptables"

#wootwootiptables

 for ip in `cat /var/log/apache2/error_log |grep w00tw00t | awk '{print $8}' | sed 's/]//g'  | sort -ug` ; do
                countoff=$[$countoff+1]
                countwoot=$[$countwoot+1]
                $IPTABLES -I INPUT -s $ip -j DROP
                $IPTABLES -I OUTPUT -s $ip -j DROP
        done
in die firewall-active.sh ein?

Danke im Voraus.

Gruß Alex.
 
Back
Top