Bitcoin Forum
May 05, 2024, 10:49:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core - Help allowing TOR (anonymous) connections  (Read 87 times)
apogio (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 961



View Profile WWW
April 21, 2023, 05:38:24 PM
Merited by OmegaStarScream (4), ABCbits (1)
 #1

Hello! I am running bitcoind using my terminal. I am on a windows machine.

When I run
Code:
bitcoin-cli -netinfo
I get the following response:

Code:
        ipv4    ipv6   onion   total   block
in         0       0       0       0
out        8       2       0      10       2
total      8       2       0      10

I know that in order to get incoming connections I need to do portforwarding and allow connections on my firewall. So, let me say in advance that I can't do this!

Could you help me allow anonymous connections? I suppose that in this manner, I won't have to care about port forwarding.

Thanks in advance!

1714949397
Hero Member
*
Offline Offline

Posts: 1714949397

View Profile Personal Message (Offline)

Ignore
1714949397
Reply with quote  #2

1714949397
Report to moderator
1714949397
Hero Member
*
Offline Offline

Posts: 1714949397

View Profile Personal Message (Offline)

Ignore
1714949397
Reply with quote  #2

1714949397
Report to moderator
1714949397
Hero Member
*
Offline Offline

Posts: 1714949397

View Profile Personal Message (Offline)

Ignore
1714949397
Reply with quote  #2

1714949397
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714949397
Hero Member
*
Offline Offline

Posts: 1714949397

View Profile Personal Message (Offline)

Ignore
1714949397
Reply with quote  #2

1714949397
Report to moderator
1714949397
Hero Member
*
Offline Offline

Posts: 1714949397

View Profile Personal Message (Offline)

Ignore
1714949397
Reply with quote  #2

1714949397
Report to moderator
1714949397
Hero Member
*
Offline Offline

Posts: 1714949397

View Profile Personal Message (Offline)

Ignore
1714949397
Reply with quote  #2

1714949397
Report to moderator
SamReomo
Hero Member
*****
Offline Offline

Activity: 798
Merit: 673


Top Crypto Casino


View Profile
April 22, 2023, 02:00:38 AM
 #2


I know that in order to get incoming connections I need to do portforwarding and allow connections on my firewall. So, let me say in advance that I can't do this!

Could you help me allow anonymous connections? I suppose that in this manner, I won't have to care about port forwarding.

Thanks in advance!

In that case the most suitable option for you is to use tor and run your node on it because it doesn't require port forwarding to allow the connections. You can also run the node on a VPS server where you won't need to forward the ports. You will only need to allow the connections through the firewall of the VPS and that's accessible to you.


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


View Profile
April 22, 2023, 06:54:09 AM
Merited by ABCbits (1)
 #3

When I run
Code:
bitcoin-cli -netinfo
I get the following response:
There's an "onion" column in the result of -netinfo so I guess you're already running with -proxy=127.0.0.1:9050 and a Tor onion service...
If so, just follow the third option in this article about connecting via Tor: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md

I recommend that manual setup since it's the most simple, just add line to your "torrc" file, start Tor, get your external IP from the "HiddenServiceDir" that you've set
and start Bitcoin Core with your correct -externalip and suggested command line options and your node will be reachable via Tor.

You can use: bitnodes.io to see if your node is reachable. (paste your -externalip)

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
apogio (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 961



View Profile WWW
April 22, 2023, 07:34:21 AM
Last edit: April 22, 2023, 09:11:09 AM by apogio
 #4

There's an "onion" column in the result of -netinfo so I guess you're already running with -proxy=127.0.0.1:9050 and a Tor onion service...
If so, just follow the third option in this article about connecting via Tor: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md

At the moment my -netinfo is as follows:

Code:
Bitcoin Core v22.0.0 - 70016/Satoshi:22.0.0/

        ipv4    ipv6   onion   total   block
in         0       0       0       0
out        9       1       0      10       2
total      9       1       0      10

Local addresses
<my onion address>     port   8333    score      4

I have run bitcoin core using:

Code:
 .\bitcoind.exe -datadir=<bitcoin core path> -externalip=<my onion address> -proxy="127.0.0.1:9050" -debug="tor" 


Tor is running as a service on my system.

Cricktor
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1111


Crypto Swap Exchange


View Profile
April 22, 2023, 02:37:56 PM
 #5

To force bitcoind to use only Tor I've the following in my bitcoin.conf file:
Code:
listenonion=1
onlynet=onion

And bitcoin-cli -netinfo yields only incoming and outgoing connections via Tor onion addresses.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


View Profile
April 22, 2023, 02:44:08 PM
Merited by ABCbits (1), apogio (1)
 #6

Code:
 .\bitcoind.exe -datadir=<bitcoin core path> -externalip=<my onion address> -proxy="127.0.0.1:9050" -debug="tor" 

If you need inbound connections, add -listen=1 command line option or follow the suggestion above, in your "bitcoin.conf" file.
You'll need it since -proxy disabled listen.

Take note that onlynet=onion will prevent you from connecting to nodes on clearnet.

Have you tried in bitnodes if your node is reachable?
If it is now, you'll eventually get inbound connections after a while.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
apogio (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 961



View Profile WWW
April 22, 2023, 03:34:37 PM
Last edit: April 22, 2023, 04:16:01 PM by apogio
Merited by nc50lc (1)
 #7

To force bitcoind to use only Tor I've the following in my bitcoin.conf file:
Code:
listenonion=1
onlynet=onion

And bitcoin-cli -netinfo yields only incoming and outgoing connections via Tor onion addresses.

If you need inbound connections, add -listen=1 command line option or follow the suggestion above, in your "bitcoin.conf" file.
You'll need it since -proxy disabled listen.

Take note that onlynet=onion will prevent you from connecting to nodes on clearnet.

Have you tried in bitnodes if your node is reachable?
If it is now, you'll eventually get inbound connections after a while.

Thank you both! I have added -listen=1 option. I haven't added the onlynet=onion option because I want to receive and send all kind of connections.

However, it looks like I still don't get incoming transactions. BUT in bitnodes it looks like my onion address is discoverable.

----EDIT----
I am so happy! Thank you! Look:

Code:
Bitcoin Core v22.0.0 - 70016/Satoshi:22.0.0/

        ipv4    ipv6   onion   total   block
in         0         0       4       4
out       10       0       0      10       2
total     10       0       4      14

Local addresses
<my onion address>.onion     port   8333    score      5

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!