Implement ASN-based banning #19129

issue sipa opened this issue on June 1, 2020
  1. sipa commented at 3:18 AM on June 1, 2020: member

    It would be useful if it were possible to ban IP ranges not just by netmask, but also by ASN number (as provided by asmap).

    Suggested by @gmaxwell.

  2. sipa added the label Feature on Jun 1, 2020
  3. fanquake added the label P2P on Jun 1, 2020
  4. naumenkogs commented at 7:21 AM on June 2, 2020: member

    Big ACK :)

  5. naumenkogs commented at 2:40 PM on June 24, 2020: member

    I was implementing this, but then realized that "mapped AS" might not make sense here?

    I assume the main goal here is to protect against inbound Sybil conns based in certain cloud providers? Then it makes more sense to look at the actual final AS, not the "mapped" AS (a.k.a bottleneck).

    Perhaps in practice final equals mapped in the majority of cases, but I don't think we want to rely on that? But then it would be unfortunate to supply 2 different files: one for mapped ("bottleneck") ASes and one for actual ASes... @gmaxwell @sipa

  6. jasonbcox referenced this in commit e59a7e1253 on Nov 13, 2020
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 09:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me