找回密码
 立即注册

阿里云 个人扶墙ban总结

[复制链接]
69伙伴 发表于 2020-3-9 08:10:10 | 显示全部楼层 |阅读模式
22世纪,要是没被ban过几十台机器,都不好意跟人打招呼。

阿里云的轻云 价格合适 只要24元而且流量有1T 个人用基本用不完。
在这个价位上,我们不说机器性能,不说线路状况。

在使用中如果装了ss或者sock 服务肯定是被ban的。
经过多次常识发现,只要装好服务端ip就被国内秒停了
v2ray 笔记 如果有需要可以参考
http://bbs.wgpro.com/forum.php?mod=viewthread&tid=764&extra=page%3D1

安全扶墙 不被封 推荐使用 http ws tls 协议
其他 就算使用 mkcp tcp 都会被ban

1.png


想不通问题出在哪里,最后只有怀疑在 阿里云顿上了

(以下是卸载步骤 最好新拿到机器后先卸载在装其他的)
卸载后并不能保证安全,但卸载也没坏处,谁让他占用200多M 内存的
检查下自己服务器上的阿里云盾是否卸载干净了,主要就是看进程里有没有阿里云盾的相关进程了(AliYunDun、aliyun-service和AliYunDunUpdate)
  1. ps -aux | grep -E 'aliyun|AliYunDun'
复制代码

远程连接到阿里云云服务器或者轻量应用服务器后,执行以下代码卸载阿里云盾:

  1. wget http://update.aegis.aliyun.com/download/uninstall.sh
  2. chmod +x uninstall.sh
  3. ./uninstall.sh
  4. wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
  5. chmod +x quartz_uninstall.sh
  6. ./quartz_uninstall.sh
复制代码



删除残留

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



卸载java环境
  1. # 卸载
  2. /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && \
  3. rm -rf /usr/local/cloudmonitor
复制代码

官方参考
https://help.aliyun.com/knowledge_detail/38859.html


屏蔽云盾 IP​

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




方法2. CentOS 关闭 AliYunDun
使用 chkconfig --list 查看开机启动里面这个软件的服务名是什么,然后 off 掉 aegis 执行就可以了。

  1. # chkconfig --list
  2. aegis           0:off   1:off   2:on    3:on    4:on    5:on    6:off
  3. agentwatch      0:off   1:off   2:on    3:on    4:on    5:on    6:off
  4. cloudmonitor    0:off   1:off   2:on    3:on    4:on    5:on    6:off
  5. mysql           0:off   1:off   2:off   3:off   4:off   5:off   6:off
  6. netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
  7. network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
复制代码


如果想开机不启动的话,chkconfig --del aegis 这个 aegis 就是你找出来的 aliyundun 的后台服务。

  1. service aegis stop  # 停止服务
  2. chkconfig --del aegis  # 删除服务
复制代码



方法3:阿里云服务器关闭云盾
查杀关闭云盾进程处理过程如下:


  1. # ps -ef | grep -v grep | grep -i aliyundun
  2. root     18779     1  0 12:33 ?        00:00:00 /usr/local/aegis/aegis_update/AliYunDunUpdate
  3. root     18832     1  0 12:33 ?        00:00:01 /usr/local/aegis/aegis_client/aegis_10_39/AliYunDun
  4. # ps -ef | grep -v grep | grep -i aliyundun | awk '{print $2}'
  5. 18779
  6. 18832
  7. # ps -ef | grep -v grep | grep -i aliyundun | awk '{print $2}' | xargs kill -9
复制代码



删除阿里云登录界面欢迎信息


  1. Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-19-generic x86_64)
  2. * Documentation: https://help.ubuntu.com
  3. * Management: https://landscape.canonical.com
  4. * Support: https://ubuntu.com/advantage
  5. Welcome to Alibaba Cloud Elastic Compute Service !
  6. Last login from
复制代码


就莫名的不爽,于是查了一下 vim /etc/motd
就可以编辑/删除倒数第二行的 Welcome to Alibaba Cloud Elastic Compute Service ! 欢迎信息了。


卸载go环境
  1. # 卸载
  2. /usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} stop && \
  3. /usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} uninstall && \
  4. rm -rf /usr/local/cloudmonitor
复制代码

官方参考
https://help.aliyun.com/document_detail/97929.html



临时交流 ⇨点我留言
【附件·直下】非必要·勿注册

网格·联系我们 ( 京ICP备16001788号|京公网安备 11010502049360号 ) | 网站地图 | 2012- WGPro.CoM |

GMT+8, 2024-3-28 18:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表