add feature to view ASN via bgpview.io to banned hosts list #100

Open
opened 2 years ago by jahway603 · 5 comments
Collaborator

While testing banning and unbanning peers, I noticed that the feature to view ASN via bgpview.io to banned hosts list is missing. The shodan option is there.

While testing banning and unbanning peers, I noticed that the feature to view ASN via bgpview.io to banned hosts list is missing. The shodan option is there.
Owner

yes, good suggestion

yes, good suggestion
Collaborator

I noticed this in testing too. I tried adding code for it similar to peers table but it is not supported in listbanned RPC. Each table has its own model and uses a different RPC. getpeerinfo returns "mapped_as", which is also not documented in RPC docs. listbanned would probably need to return that for this to work. Right now it'll just use 0 and not link to anything.

I noticed this in testing too. I tried adding code for it similar to peers table but it is not supported in `listbanned` RPC. Each table has its own model and uses a different RPC. `getpeerinfo` returns "mapped_as", which is also not documented in RPC docs. `listbanned` would probably need to return that for this to work. Right now it'll just use 0 and not link to anything.
Owner

I will work on making listbanned return this data. Our internals forked from a version of BTC core that didn't know about ASN's, and then when I added ASN support, some RPC's didn't learn about it, such as listbanned

I will work on making listbanned return this data. Our internals forked from a version of BTC core that didn't know about ASN's, and then when I added ASN support, some RPC's didn't learn about it, such as `listbanned`
Collaborator

Code to handle this is in latest commit but will use 0 for now: 9c1db5ff8b/src/bannedpeerstablemodel.cpp (L63)

Code to handle this is in latest commit but will use 0 for now: https://git.hush.is/hush/SilentDragon/src/commit/9c1db5ff8bc2f08a112fa55d8e4e7129cec0b14d/src/bannedpeerstablemodel.cpp#L63
duke added the
feature
label 1 year ago
duke commented 1 year ago
Owner

So to clarify, SD knows how to do this now but hushd needs to give it the proper data, instead of 0

So to clarify, SD knows how to do this now but hushd needs to give it the proper data, instead of 0
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.