完全屏蔽国内云厂商自带监控

说明

  • 云厂商自带的监控会误伤梯子,果断干掉

阿里云

Linux主机

卸载阿里云盾

1
2
curl -sSL http://update.aegis.aliyun.com/download/uninstall.sh | bash
curl -sSL http://update.aegis.aliyun.com/download/quartz_uninstall.sh | bash

删除阿里云盾文件

1
2
3
pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*

屏蔽云盾IP

1
2
3
4
5
6
7
8
9
10
11
iptables -I INPUT -s 140.205.201.0/28 -j DROP
iptables -I INPUT -s 140.205.201.16/29 -j DROP
iptables -I INPUT -s 140.205.201.32/28 -j DROP
iptables -I INPUT -s 140.205.225.192/29 -j DROP
iptables -I INPUT -s 140.205.225.200/30 -j DROP
iptables -I INPUT -s 140.205.225.184/29 -j DROP
iptables -I INPUT -s 140.205.225.183/32 -j DROP
iptables -I INPUT -s 140.205.225.206/32 -j DROP
iptables -I INPUT -s 140.205.225.205/32 -j DROP
iptables -I INPUT -s 140.205.225.195/32 -j DROP
iptables -I INPUT -s 140.205.225.204/32 -j DROP

Windows主机

下载卸载脚本

1
http://update.aegis.aliyun.com/download/uninstall.bat?spm=a2c6h.13066369.0.0.143d32d0TB6nIu&file=uninstall.bat

运行脚本

双击 uninstall.bat 文件执行脚本

腾讯云

Linux主机

1
2
3
4
5
6
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -rf /usr/local/qcloud/
rm -rf /usr/local/sa/
rm -rf /usr/local/agenttools

Windows主机

  • 程序安装路径是C:\Program Files\QCloud\StargateC:\Program Files\QCloud\Monitor
  • 双击目录里面的 uninstall脚本 即可卸载