Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
afkool
V2EX  ›  Linux

低配置的 vps 是不是无法依靠 nftables 防住 cc?

  •  
  •   afkool · Sep 5, 2023 · 3294 views
    This topic created in 1159 days ago, the information mentioned may be changed or developed.

    瓦工的 planV2 cc 攻击每秒 20 次请求。 防火墙策略里不允许非中国 IP 。也根据一些特征做了过滤。 但 CPU 仍旧 100%停不下来。 是不是面对大量的请求,低配 cpu 丢包都丢不过来?

    11 replies  •  2023-09-07 10:34:17 +08:00
    R4rvZ6agNVWr56V0
    R4rvZ6agNVWr56V0
    Sep 5, 2023
    1
    是
    zbinlin
    zbinlin
    Sep 5, 2023
    2
    rule 有哪些?
    richangfan
    richangfan
    Sep 5, 2023
    3
    你需要 Cloudflare
    slowman
    slowman
    Sep 5, 2023
    4
    20tps 也算攻击?
    afkool
    afkool
    OP
    Sep 5, 2023
    5
    @richangfan cloudflare 速度慢主要。。拿瓦工给自己国外垃圾线路做加速的。

    @1423 算错了。。200 左右。CF 拦截了大概就是 8 小时 600 万的样子
    magnetar
    magnetar
    Sep 6, 2023
    6
    cc 可以啊,根据 ip 请求速率设置 cc 规则,iptables 拉黑一批 ip 后就恢复了,这点儿并发 vps 没这么脆弱,cc 成本低,主要是恶心人,不难防,恐怖的是 ddos
    flyqie
    flyqie
    Sep 6, 2023 via Android
    7
    最好的防护措施永远都是攻击流量不要走到你服务器。

    但你这 100%,要么是规则没拦住,要么是量太大,很难说。
    irrigate2554
    irrigate2554
    Sep 6, 2023
    8
    每秒 20 次都顶不住还是优化软件先吧,不说正常业务,可能搜索引擎爬虫就把你爬蹦了。
    happyxhw101
    happyxhw101
    Sep 6, 2023
    9
    有没有用 ipset ?
    afkool
    afkool
    OP
    Sep 6, 2023
    10
    @happyxhw101 用的是 goedge 这个 cdn 搭建的。好像走的是他自己的防火墙规则。配合 nftables 。IP 倒是拉黑了几千个。感觉作用也不大。。是时候升级下配置了。。诶。。
    dif
    dif
    Sep 7, 2023
    11
    低配 VPS 一般也没人攻击,怕的话挂个 CF5 秒盾。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   675 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 20:59 · PVG 04:59 · LAX 12:59 · JFK 15:59
    ♥ Do have faith in what you're doing.