I have downloaded, verified and started running monerod correctly. It is running inside a whonix app qube (AppVM), and is able to connect to clearnet and Tor peers, and download the monero blockchain.
So far, so good.
The problem is trying to get monerod host its restricted-rpc as a hidden server. Here’s my current monerod.conf
file:
#logging
max-log-file-size=0
log-file=/dev/null
#server
no-zmq=1
no-igd=1
# syncing
db-sync-mode=fastest:async:250000000bytes
max-concurrency=2
fast-block-sync=0
block-sync-size=0
disable-dns-checkpoints=1
# p2p
out-peers=32
in-peers=32
p2p-bind-ip=127.0.0.1
p2p-bind-port=18080
rpc-bind-ip=127.0.0.1
rpc-bind-port=18081
rpc-restricted-bind-ip=127.0.0.1
rpc-restricted-bind-port=18089
rpc-ssl=disabled
disable-rpc-ban=1
public-node=1
confirm-external-bind=1
# tor
proxy=127.0.0.1:9050
tx-proxy=tor,127.0.0.1:9050,16,disable_noise
anonymous-inbound=mymonerodservice.onion:18083,127.0.0.1:18083,16
pad-transactions=1
As you can see from the #tor
section, I am currently using the default tor proxy 127.0.0.1:9050
inside the monerod-whonix-qube (AppVM).
Now, here’s my Tor User Config on sys-whonix
HiddenServiceDir /var/lib/tor/mymonerodservice/
HiddenServicePort 18083 <monerod-whonix-qube-IP>:18083
HiddenServicePort 18089 <monerod-whonix-qube-IP>:18089
After saving and exiting the Tor User Config file, I also used Tor Reload button on the Qubes Application Menu to reload the configuration. Afterwards, I got my mymonerodservice.onion
URL by:
(sys-whonix) $ sudo cat /var/lib/tor/mymonerodservice/hostname
which goes into the abovementioned monerod.conf file.
On the monerod-whonix-qube (AppVM) I open the whonix firewall as following:
(monerod-whonix-qube) $ sudo mkdir -p /usr/local/etc/whonix_firewall.d/
(monerod-whonix-qube) $ sudoedit /usr/local/etc/whonix_firewall.d/50_user.conf
and insert the following content into 50_user.conf
file:
EXTERNAL_OPEN_PORTS+=" 18083 "
EXTERNAL_OPEN_PORTS+=" 18089 "
I save the file and quit. And reload the monerod-whonix-qube (AppVM)'s firewall:
(monerod-whonix-qube) $ sudo whonix_firewall
On the stdout I see bunch of OK
status messages, and no errors.
QUESTIONS:
-
I am unable to reach my monerod RPC hidden service from outside. On an isolated, different whonix disposable qube, using torbrowser, I try to visit my URL:
http://mymonerodservice.onion:18089/getinfo
, yet, even after waiting 15 minutes for the tor network, the previous URL doesn’t resolve. In my monerod-whonix-qube, using torbrowser the URLhttp://127.0.0.1:18089/getinfo
correctly fetches a json output containing the status of my monerod node. How do I get the RPC hidden server be reachable from the outside world? -
Should I use the
<sys-whonix-IP>:9153
value for theproxy
andtx-proxy
directives in my abovementionedmonerod.conf
file? Would that play nice with hosting a hidden service of my monerod RPC server on the monerod-whonix-qube (AppVM)? I tried using the<sys-whonix-IP>:9153
as I just mentioned, but I still couldn’t reach the RPC hidden server from outside.