只需一步,快速开始
netstat -na
netstat -an | grep :80 | sort
netstat -n -p|grep SYN_REC | wc -l
netstat -n -p | grep SYN_REC | sort -u
netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F: '{print $1}'
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
netstat -anp |grep 'tcp|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
netstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
iptables -A INPUT 1 -s $IPADRESS -j DROP/REJECT
killall -KILL httpd
service httpd start #RedHat 系统 /etc/init/d/apache2 restart #Debian 系统
举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )
GMT+8, 2025-2-2 21:15
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.