من با این دستور
کد:
iptables -A INPUT -i eth0 -s 46.229.168.0/25 -j DROP
از 46.229.168.
0 تا 46.229.168.
255
رنج رو می بندم اما وقتی دستور فوق رو می زنم باز هم میبینم ای پی ها لیسن هستن چرا پاک نمیشن ؟ ایا دراپ انجام نمیشه ؟
service iptables restart
iptables -L
کد:
DROP all -- 46.229.160.0/20 anywhere
DROP all -- 46.229.160.0/20 anywhere
DROP all -- 46.229.168.0/25 anywhere
DROP all -- 46.229.168.0/25 anywhere
DROP all -- 46.229.168.0/21 anywhere
DROP all -- 46.229.168.0/22 anywhere
DROP all -- 46.229.168.0/23 anywhere
DROP all -- 46.229.168.0/24 anywhere
و
netstat -lantp|egrep ":80 "|awk '{print $5}'|cut -d: -f1|sort|uniq -c|sort -nr|head
کد:
7 46.229.168.70
4 46.229.168.73
4 46.229.168.69
4 46.229.168.66
3 46.229.168.71
3 46.229.168.68
2 46.229.168.72