Bitcoin 0.13.1
E.g. having Tor service running on LAN IP 192.168.9.5
(which ORPort is natted from the WAN router) and with Tor hidden service configuration
HiddenServicePort 8333 192.168.9.10:8333
and running bitcoind with onlynet=tor on another LAN host with IP 192.168.9.10, Port 8333
then on bitcoind one sees the connections all from IP 192.168.9.5 with different source ports, of course.
Now I have the following in the debug log:
Misbehaving: 192.168.9.5:42853 (0 -> 200) BAN THRESHOLD EXCEEDED connection from 192.168.9.5:42858 dropped (banned) connection from 192.168.9.5:42860 dropped (banned) connection from 192.168.9.5:42870 dropped (banned) connection from 192.168.9.5:42883 dropped (banned) connection from 192.168.9.5:42886 dropped (banned)
The IP 192.168.9.5 was blocked, and since that is the Tor hidden service IP, all incoming connections are blocked.
So, I need to whitelist the IP 192.168.9.5, but then the ban function would be lost.