Last update at :2024-06-17,Edit by888u
Under normal circumstances, Alibaba Cloud Shield and Server Guard software will be installed by default on our Alibaba Cloud servers. The main purpose is to automatically detect the security of the server and give certain warning prompts. If there is no problem with our general project, just install it, but it may occupy some server resources. However, the basic version given to us for free by default only has prompt questions. If you need to solve and have a deeper understanding of security issues, you need to upgrade and pay. Maybe this is a routine.
Today Snail will share a one-click package on how to uninstall Alibaba Cloud Shield and Server Guard provided online. The script is from Alibaba Cloud. However, it should be noted that if there are already projects in our server, it is recommended to take a snapshot backup first, in case something goes wrong and we cannot afford it. In fact, generally there is no problem if you don’t uninstall it, but some people may need to uninstall it because certain items may be blocked.
You may also need articles related to Alibaba Cloud servers:
1. Alibaba Cloud lightweight application server basic website building system deploys Web environment and applications
2. Cancel the setting problem of disabling PING by default on the Alibaba Cloud ECS server
3. Use the OSS Upload plug-in to implement Alibaba Cloud OSS separated storage of WordPress media files
First, preparations
The importance of backups. If there is more important data in our Alibaba Cloud server, no matter whether it is important or not, we must back it up when we are not familiar with the commands and software. Or just learn from Snail and test it on a test machine in advance and then implement it in the production environment. Backups are necessary anyway, and sometimes even experts may have problems.
Second, uninstall Alibaba Cloud Shield and Server Guard
wget http://update.aegis.aliyun.com/download/uninstall.shchmod +x uninstall.sh./uninstall.shwget http://update.aegis.aliyun.com/download/quartz_uninstall.shchmod +x quartz_uninstall.sh./quartz_uninstall.sh
Third, clean up residual files
pkill aliyun-servicerm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-servicerm -rf /usr/local/aegis*
Fourth, block Alibaba Cloud Shield IP address
iPtables -I input -S 140.205.225.183/32 -j Dropiptables -I input -S 140.205.225.206/32 -j Dropiptables -I INPUT -S 140.205.205/32 -J DROPIP Tables -i input -S 140.205. 225.195/32 -j DROPiptables -I INPUT -s 140.205.225.204/32 -j DROPiptables -I INPUT -s 140.205.201.0/28 -j DROPiptables -I INPUT -s 140.205.201.16/29 -j DROPiptables -I INPUT - s 140.205.201.32/28 -j DROPiptables -I INPUT -s 140.205.225.192/29 -j DROPiptables -I INPUT -s 140.205.225.200/30 -j DROPiptables -I INPUT -s 140.205.225.184/29 -j DR OP
Use iptables to block the IP address of Alibaba Cloud Shield to prevent it from being scanned over. In the early stage, our server had the iptables firewall turned on. If it is not turned on, it needs to be turned on.
In summary, the above method can be used to uninstall Alibaba Cloud Shield and Server Guard. After completion, we can restart the server and check whether our projects in the Alibaba Cloud server are normal. If it is not normal, you need to check the problem or we can restore the previous backup to solve the problem.
Recommended site searches: Ministry of Industry and Information Technology filing, domain name registration query, domain name information, Hong Kong hosting, free personal homepage space, IP reverse check, domain name price, IP reverse check, Korean cheap server, same IP site query,
发表评论