I've been manually banning peers that are (a) clogging up my logs and (b) taking away space that would otherwise be used for legitimate in_peer
connections (which I have limited for data usage reasons). It is a little time consuming, but it's fine. It does the job.
I didn't realize that closing monerod
would discard that ban list. My logs had been clearing up, and then I had to briefly shut down monerod
. Now I've got a sea of bad peers to manually ban again.
- Is there a way to make the ban list persist?
- If not within
monerod
, what might another (simple) strategy be to "preserve" that state? - Am I stuck having to write some script to detect IPs for auto-banning according to my rules? Perhaps by parsing the daemon log and sending a
ban
RPC command to the daemon?
I like the idea of learning new things, so if #3 is required, then so be it. I just don't want to overcomplicate things if I don't have to.