scriptı yaptım ama
[root@www bin]# /usr/bin/ip_banla.sh
warning, got duplicate tcp line.
warning, got duplicate tcp line.
warning, got duplicate tcp line.
Bad argument `DROP'
Try `iptables -h' or 'iptables --help' for more information.
[root@www bin]#
bu sekılde hata alıyorum nedendır
scriptte bu
#!/bin/bash
#
netstat -ntu|awk '{print $5}'|cut -d: -f1| \
sort|uniq -c|sort -n|grep -v 127.0.0.1| \
awk '{if ($1 > 9) print $2;}' > /tmp/IPLER
while read ipler; do iptables -A INPUT -s $ipler \
-j DROP ; done < /tmp/IPLER
[root@www bin]# /usr/bin/ip_banla.sh
warning, got duplicate tcp line.
warning, got duplicate tcp line.
warning, got duplicate tcp line.
Bad argument `DROP'
Try `iptables -h' or 'iptables --help' for more information.
[root@www bin]#
bu sekılde hata alıyorum nedendır
scriptte bu
#!/bin/bash
#
netstat -ntu|awk '{print $5}'|cut -d: -f1| \
sort|uniq -c|sort -n|grep -v 127.0.0.1| \
awk '{if ($1 > 9) print $2;}' > /tmp/IPLER
while read ipler; do iptables -A INPUT -s $ipler \
-j DROP ; done < /tmp/IPLER