joinmarket-clientserver icon indicating copy to clipboard operation
joinmarket-clientserver copied to clipboard

Directory node service setup Tor permission issues

Open techy2 opened this issue 1 year ago • 0 comments

lubuntu 22.04.05 LTS joinmarket-clientserver 9.11 tor 4.6.10

I am trying to setup a directory node on a dedicated host running joinmarket-clientserver and Tor

Following the directions in the joinmarket docs I have added the user 'johndoe' to debian-tor group and set hidden_service_dir to /home/johndoe/dirnode/

Tor fails to create dirnode

If is set hidden_service to tor's preferred /var/lib/tor/hidden_service/

the directory is created with the appropriate contents, however start-dn.py can not access that directory

Workarounds I have tried include adding a line to 1 apparmor.d/system.tor /home/johndoe/dirnode** rwk

2 /lib/systemd/system/tor@defaults ReadWriteDirectories=-/home/johndoe/dirnode

3 use /opt/tor as base for hidden service, Tor can not write there

all of the above with various file ownership of either johndoe.johndoe, debian-tor.debian-tor

This problem is obviously solvable as there are many directory nodes presuemably some on Linux + ubuntu. I'm just missing something

documentation, chat searches, etc... offer no clues other than what I've tried above

Perhaps when this is resolved we can update the documentation to be more specific on how to setup a directory node. Suggested updates: 1 how to setup permissions and directories for torrc/joinmarket.cfg 2 which port to designate for HiddenServicePort ??? 127.0.0.1:27183 3 what NAT port to open on firewall for return traffic for tor 80, 443, 5222 ??? when host is on a local network

I will gladly document all of this and submit as a PR once it is sorted out.

techy2 avatar Sep 17 '24 00:09 techy2