Bitcoind has option to allow remote connections from rpc from certain ip ranges. We can use:
rpcallowip=10.10.16.0/20
to allow conne