Post
Topic
Board Bitcoin Technical Support
Re: Two Node Questions: (1) BTC Core + Bisq, (2) RPC and Bisq Full Node
by
n0nce
on 09/05/2022, 10:40:51 UTC
@nOnce

My response is embedded and I don't know if you'll see it:

YOUR CLARIFICATIONS are appreciated. While we are on the topic of Tor ports being routed automatically versus the clearnet instance of BTC Core, I need to ask you about a problem! Now that I am running bisq.network in DAO Full Node I am seeing > 10 outbound peers. BUT I receive an error messge that says that my environment is blocking Tor inbound. How do I enable Tor inbound? The error message mentioned VM as a possiblility but I'm not running a VM. I have checked bisq documentation and I cannot find details on this item.
Most guides on the web recommed to open Tor's control port so that Bitcoin Core can access it and set itself up (simplified explanation here), like this:
Now that Tor is installed, we need to edit the torrc file located in /etc/tor/. Navigate to it the traditional way, open it, and add the following lines into the file at the bottom:

Code:
SOCKSPort 9050
Log notice stdout
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
HiddenServiceDir /var/lib/tor/lnd/
HiddenServicePort 8080 127.0.0.1:8080

While this certainly works, it's also what was recommeded in the Core Lightning TOR install guide, but I avoided it using a few other parameters in torrc and the lightningd config.
C-Lightning

[...]

[3] Below the other hidden service, add this info for Lightning.
Code:
HiddenServiceDir /var/lib/tor/lightningd_hidden_service/
HiddenServiceVersion 3
HiddenServicePort 9735 127.0.0.1:9735

[4] Then restart Tor and retrieve the new v3 Tor hostname for your Lightning installation. Copy it somewhere so you have it handy in step 7.
Code:
sudo service tor restart
sudo cat /var/lib/tor/lightningd_hidden_service/hostname

[5] Log into bitcoin user and download + build Lightning. v0.10.1 needs to be set to the latest version.
Code:
su - bitcoin
git clone https://github.com/ElementsProject/lightning.git
cd lightning
git checkout v0.10.2
./configure
make -j $(nproc)

[6] Create Lightning config.
Code:
mkdir -p /home/bitcoin/.lightning/bitcoin
nano /home/bitcoin/.lightning/bitcoin/lightningd.conf

[7] Enter the following. Alias can be chosen at will! Smiley Replace onion_address_you_got with the hidden service hostname you got in step 4!
Code:
daemon
alias=alias_for_your_node
network=bitcoin
log-level=debug
log-file=/home/bitcoin/.lightning/debug.log

# incoming via tor
bind-addr=127.0.0.1:9735
announce-addr=onion_address_you_got.onion

# outgoing via tor
proxy=127.0.0.1:9050
always-use-proxy=true

[...]