a719114136
V2EX  ›  问与答

匹配大量 ip,有没有啥好方法

  •  
  •   a719114136 · Jun 25, 2021 · 2043 views
    This topic created in 1967 days ago, the information mentioned may be changed or developed.

    现在需要屏蔽国内 ip,已有 CIDR 的地址列表,也有装换后的 ip 列表。有啥好的方法

    5 replies  •  2021-06-26 11:47:00 +08:00
    westoy
    westoy
    Jun 25, 2021
    1
    ipset 大法好
    bfdh
    bfdh
    Jun 25, 2021
    2
    参考 1 楼,ipset
    KagurazakaNyaa
    KagurazakaNyaa
    Jun 25, 2021
    3
    屏蔽国内 ip,那一般是直接用 geoip 吧
    a719114136
    a719114136
    OP
    Jun 25, 2021
    4
    @XiLingHost 考虑过类似的方案,但其实只需要识别国内 ip,并不需要 ip 的信息,所有这种方案比较浪费内存
    thomaspaine
    thomaspaine
    Jun 26, 2021
    5
    @a719114136 bloom filter ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:26 · PVG 00:26 · LAX 08:26 · JFK 11:26
    ♥ Do have faith in what you're doing.