I am using the container kylemanna.
In the bitcoin.conf I have one entry
rpcallowip=192.168.1.0/24
Logs are:
+ cat /bitcoin/.bitcoin/bitcoin.conf
+ echo 'Initialization completed successfully'
rpcallowip=192.168.1.0/24Initialization completed successfully
+ [ 0 -eq 0 ]
+ set -- -rpcbind=:8332 -rpcallowip=0.0.0.0/0
+ exec bitcoind -rpcbind=:8332 -rpcallowip=0.0.0.0/0
2022-04-03T08:38:57Z Bitcoin Core version v22.0.0 (release build)
2022-04-03T08:38:57Z Assuming ancestors of block 00000000000000000008a89e854d57e5667df88f1cdef6fde2fbca1de5b639ad have valid signatures.
2022-04-03T08:38:57Z Setting nMinimumChainWork=00000000000000000000000000000000000000001fa4663bbbe19f82de910280
2022-04-03T08:38:57Z Using the 'shani(1way,2way)' SHA256 implementation
2022-04-03T08:38:57Z Using RdSeed as additional entropy source
2022-04-03T08:38:57Z Using RdRand as an additional entropy source
2022-04-03T08:38:57Z Default data directory /bitcoin/.bitcoin
2022-04-03T08:38:57Z Using data directory /bitcoin/.bitcoin
2022-04-03T08:38:57Z Config file: /bitcoin/.bitcoin/bitcoin.conf
2022-04-03T08:38:57Z Config file arg: rpcallowip="192.168.1.0/24"
2022-04-03T08:38:57Z Config file arg: txindex="1"
2022-04-03T08:38:57Z Command-line arg: rpcallowip="0.0.0.0/0"
2022-04-03T08:38:57Z Command-line arg: rpcbind=****
2022-04-03T08:38:57Z Using at most 125 automatic connections (1048576 file descriptors available)
2022-04-03T08:38:57Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2022-04-03T08:38:57Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2022-04-03T08:38:57Z Script verification uses 1 additional threads
2022-04-03T08:38:57Z scheduler thread start
2022-04-03T08:38:57Z WARNING: the RPC server is not safe to expose to untrusted networks such as the public internet
I am trying to get rid of the RPC server warning with many attempts playing with rpcallowip and rpcbind, but the warning keeps popping up.
How can I have a local LAN connection to the RPC server only?
Which settings do I need to put into bitcoin.conf to get rid of the warning?
Which commands take precedence? The cli commands of the container, or my settings in bitcoin.conf?