阿里云ECS禁止XX.163data.com.cn和xxxxx.bc.googleusercon访问

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了阿里云ECS禁止XX.163data.com.cn和xxxxx.bc.googleusercon访问相关的知识,希望对你有一定的参考价值。

事由

 早上起来实施反馈客户网站无法访问
于是打开服务器查看问题  发现登录很慢   于是感觉是宽带出问题了

iftop -B -P -i eth1 查看

技术图片
技术图片

    发现好多此类的访问和输出

先把服务正常访问 禁止此类的访问

ping 6.205.186.35.bc.googleusercontent.com 找到对应的IP地址
  再安全组里面禁止此类的ip地址访问
    但是还有其他ip地址的继续访问过来

防火墙iptables禁止访问

    -A INPUT -p tcp -m string --string "broad.cd.sc.dynamic.163data.com" --algo bm -j DROP
-A INPUT -p tcp -m string --string "broad.cd.sc.dynamic.163data.com.cn" --algo bm -j DROP
      -A INPUT -p tcp -m string --string "bc.googleusercontent.com" --algo bm -j DROP
 -A OUTPUT -p tcp -m string --string "broad.cd.sc.dynamic.163data.com" --algo bm -j DROP
-A OUTPUT -p tcp -m string --string "broad.cd.sc.dynamic.163data.com.cn" --algo bm -j DROP
      -A OUTPUT -p tcp -m string --string "bc.googleusercontent.com" --algo bm -j DROP

以上是关于阿里云ECS禁止XX.163data.com.cn和xxxxx.bc.googleusercon访问的主要内容,如果未能解决你的问题,请参考以下文章

阿里云服务器 ECS Linux 禁止IP 通过 SSH 登录

怎么使用阿里云ecs设置网站首页

阿里云服务器ecs怎么使用

阿里云ecs服务器怎么设置更安全

阿里云ECS,配置ssh远程登录

阿里云ecs能搭建haproxy+keepalive吗