I’m working on forming a subnetwork of IPFS nodes connected via a custom pubsub channel. Each node in my subnetwork identifies itself, and so nodes that do not identify themselves are clearly not part of the subnetwork. My code runs
swarm.disconnect() on those nodes.
What I’ve found is that the non-member nodes that my node is actively trying to disconnect will immediately re-connect. Over time more and more nodes that are not in my subnetwork will connect, and eventually the bandwidth of my node will start to increase significantly.
I have the
Routing.Type config setting set to
none. I’m running go-ipfs v0.11.0.
It would be great if IPFS had a ‘blacklist’ I could add the problematic nodes to, so that my software isn’t having to play this tug-of-war. I have the
server profile set, which populated the Swarm.AddrFilters array. From the documentation, it doesn’t seem exactly like what I’m looking for, in terms of a ‘blacklist’.
Is there some way of banning other nodes from connecting to my node?