端口被陌生 IP 恶意访问导致被 ban - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
yongsan01
V2EX    Linux

端口被陌生 IP 恶意访问导致被 ban

  •  
  •   yongsan01 2019-09-22 16:39:14 +08:00 6518 次点击
    这是一个创建于 2281 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Centos 6 x86 bbr LA 机房

    之前一直正常使用,最近发现端口在国内无法访问

    一开始没在意,就换了端口继续用,过了一天不到又 closed,于是去看了日志

    发现最后几次连接是由不同 IP 发来的恶意连接请求,这些请求之后端口就被 closed 了

    这属于服务器被攻击吗?

    log:

    2019-09-21 21:08:40 WARNING unsupported addrtype 78, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 221.198.83.14:59208 2019-09-21 21:08:40 WARNING unsupported addrtype 181, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 219.143.174.157:25665 2019-09-21 21:08:40 WARNING unsupported addrtype 93, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 223.166.74.157:59194 2019-09-21 21:08:40 WARNING unsupported addrtype 209, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 171.36.133.60:59190 2019-09-21 21:08:40 WARNING unsupported addrtype 230, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 175.42.2.81:59206 2019-09-21 21:08:40 WARNING unsupported addrtype 169, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 59.173.153.107:59192 2019-09-21 21:08:40 WARNING unsupported addrtype 234, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 58.19.92.207:4857 2019-09-21 21:08:40 WARNING unsupported addrtype 50, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 36.32.3.90:59210 2019-09-21 21:08:40 WARNING unsupported addrtype 189, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 220.200.164.85:59200 2019-09-21 21:08:40 INFO connecting <8e>O^TgH<84>&8^K<81>)D:4186 from 175.152.109.65:59202 2019-09-21 21:08:40 ERROR invalid hostname: <8e>O^TgH<84>&8^K<81>)D when handling connection from 175.152.109.65:59202 2019-09-21 21:08:40 WARNING unsupported addrtype 206, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 125.84.177.43:1559 2019-09-21 21:08:40 WARNING unsupported addrtype 126, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 124.88.112.129:1759 2019-09-21 21:08:40 WARNING unsupported addrtype 142, maybe wrong password or encryption method 2019-09-21 21:08:40 ERROR can not parse header when handling connection from 124.225.43.91:59188 

    一些想法

    • 通过限制连接次数,判断出恶意连接后,拒绝陌生 ip 的访问(比如只能连 3 次,错误超过 3 次后列入黑名单)
    • 建立白名单,只允许白名单内的 IP 访问该端口

    希望各位能够推荐一些方法或应用 (抱拳

    2 条回复    2019-09-23 02:55:06 +08:00
    mason961125
        1
    mason961125  
       2019-09-22 17:01:08 +08:00
    fail2ban
    invalidtoken
        2
    invalidtoken  
       2019-09-23 02:55:06 +08:00 via Android
    被识别和探测了吧...
    换个不那么古老的协议,改一下密码
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     909 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 23:23 PVG 07:23 LAX 15:23 JFK 18:23
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86