Bitcoin Forum
May 06, 2024, 10:50:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to run Bitcoin-Qt using Tor?  (Read 6727 times)
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
April 29, 2013, 12:24:51 AM
 #1

Hello,

1. Since I downloaded Bitcoin-Qt I ran it using Settings -> Options -> Network -> Map port using UPnP.
and it worked okay.

2. After reading this article https://en.bitcoin.it/wiki/Tor I changed Bitcoin-Qt to Settings -> Options -> Network -> Connect through SOCKS proxy:
Proxy IP: 127.0.0.1     Port: 9050     SOCKS Version: 5
and my Bitcoin-Qt says in Overview window in the right bottom ''0 active connections to Bitcoin network''.

3. What should I do to get Bitcoin-Qt running on Tor? What I am doing wrong? Changing to Socks Version: 4 doesn't help.

Thanks.
1714992649
Hero Member
*
Offline Offline

Posts: 1714992649

View Profile Personal Message (Offline)

Ignore
1714992649
Reply with quote  #2

1714992649
Report to moderator
1714992649
Hero Member
*
Offline Offline

Posts: 1714992649

View Profile Personal Message (Offline)

Ignore
1714992649
Reply with quote  #2

1714992649
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714992649
Hero Member
*
Offline Offline

Posts: 1714992649

View Profile Personal Message (Offline)

Ignore
1714992649
Reply with quote  #2

1714992649
Report to moderator
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 29, 2013, 04:25:19 AM
 #2

Clicking "New Identity" in Tor usually helps if you have a bad connection. Also note that connecting over Tor can be very slow at times, so you have to be patient.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
theking
Full Member
***
Offline Offline

Activity: 154
Merit: 100



View Profile
April 29, 2013, 04:39:54 AM
 #3

theres some settings u can edit to limit the connections to slower nodes, i dont have the details at hand but its around the web on the tor forums i think

WIN: WQvqPASu4ffjfupfwkZCX2zECLAedBfSxT /// TheSmurfsCoin. TgKhTqtEe2NRQXKzUNL6TXs9NNSXTvxg26 /// [ANN] PixxCoin | PoS | Wallet with built in Exchange Dice Game And Fa | Free IPO. PLncxuyTOpsdASEAIweeoweKSJASJDNZETR /// CoolCoin - Free+IPO POS. CJG2g8CDkTrj5TMHHzi9ynkAvHamuUiKhC /// Get GiveawayCoin(GC)? (Free 100%NO IPO NO POW,PURE POS. G********* /// Let's flower the moon. Shjtq1XLnjgpbzSK3SvqMhQpK9CeAYLCPZ /// FootballCoin(FBC):FiaYuHEWhoS8v5dPbGLRDh7FBtcDV7TdnA /// Freebiescoin- 100% FREE Distribution FKDJUQ4Ybzdno2hoAP2NuYh1VAaTwMq1y2 /// ShareCoin Free and Fair Distribution. SR8eG4bhC2CzKnN2PfBz7vtj3zrcyXAuWr /// Energycoin - Save Energy, Pure POS (Free IPO). eCvsqEW2oFaSRq4XozfrHP8XuZ9kvrfQ5W /// Tagbond Rewards - My TAG ID is 5834 - Tag someone today with a reward, get your own TAG ID # (www.tagbond.com/5834)
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
April 29, 2013, 10:07:33 AM
 #4

Clicking "New Identity" in Tor usually helps if you have a bad connection.

It doesn't help. But I noticed that when I click on Vidalia Control Panel -> Settings -> Advanced, then the ticked option is ''Use TCP connection (ControlPort)''
Address:127.0.0.1:9151

Note 9151 in Tor is different than 9050 in Bitcoin-Qt. Could this be the reason?
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 29, 2013, 02:23:48 PM
 #5

It doesn't help. But I noticed that when I click on Vidalia Control Panel -> Settings -> Advanced, then the ticked option is ''Use TCP connection (ControlPort)''
Address:127.0.0.1:9151

Note 9151 in Tor is different than 9050 in Bitcoin-Qt. Could this be the reason?
No. The Control Port is what Vidalia (and other Tor controllers) use to configure Tor. Applications (including Bitcoin-Qt) using Tor to connect to the Internet anonymously do so through the SOCKS Port, which should be 9050 unless you've changed it. Assuming you haven't changed it, it should "just work", though it may be slow. It should eventually connect if you just leave it running for a while. If not, I don't really know what to suggest other than making sure you really are connected to the Tor network and that other applications (eg web browsers) can connect over Tor, though I assume (and probably shouldn't) that you've already tried that.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
April 29, 2013, 02:56:15 PM
 #6

The Control Port is what Vidalia (and other Tor controllers) use to configure Tor. Applications (including Bitcoin-Qt) using Tor to connect to the Internet anonymously do so through the SOCKS Port, which should be 9050 unless you've changed it.

No, I haven't changed anything and Vidalia says it is using ControlPort 9151.

Assuming you haven't changed it, it should "just work", though it may be slow. It should eventually connect if you just leave it running for a while. If not, I don't really know what to suggest other than making sure you really are connected to the Tor network and that other applications (eg web browsers) can connect over Tor, though I assume (and probably shouldn't) that you've already tried that.

I have been waiting for 25 minutes and Bitcoin-Qt has still 0 active connections.
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 30, 2013, 03:21:21 AM
 #7

The Control Port is what Vidalia (and other Tor controllers) use to configure Tor. Applications (including Bitcoin-Qt) using Tor to connect to the Internet anonymously do so through the SOCKS Port, which should be 9050 unless you've changed it.

No, I haven't changed anything and Vidalia says it is using ControlPort 9151.
The Control Port is irrelevant. It is only used by Vidalia, not Bitcoin-Qt. If you mess it up, Vidalia will not function, and you will get an error when you try to run it (though I'm pretty sure you can't mess it up unless you've configured Tor from outside of Vidalia). The SOCKS Port is something completely different. Check your Tor configuration file (torrc) and verify that your SOCKS port is either 9050 or not set at all (if it's not set, Tor uses 9050 as the default).

Assuming you haven't changed it, it should "just work", though it may be slow. It should eventually connect if you just leave it running for a while. If not, I don't really know what to suggest other than making sure you really are connected to the Tor network and that other applications (eg web browsers) can connect over Tor, though I assume (and probably shouldn't) that you've already tried that.

I have been waiting for 25 minutes and Bitcoin-Qt has still 0 active connections.
...and other applications can connect over Tor without any problems, yes? If so, I'm all out of ideas.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
April 30, 2013, 04:48:44 AM
 #8

Check your Tor configuration file (torrc) and verify that your SOCKS port is either 9050 or not set at all (if it's not set, Tor uses 9050 as the default).

This is the content of torrc:
___________________________________________
# If non-zero, try to write to disk less frequently than we would otherwise.
AvoidDiskWrites 1
# Store working data, state, keys, and caches here.
DataDirectory .\Data\Tor
GeoIPFile .\Data\Tor\geoip
# Where to send logging messages.  Format is minSeverity[-maxSeverity]
# (stderr|stdout|syslog|file FILENAME).
Log notice stdout
# Bind to this address to listen to connections from SOCKS-speaking
# applications.
SocksListenAddress 127.0.0.1
SocksPort 9150
ControlPort 9151
_________________________________________

What should I do? I simply need an idiot-proof instruction like in torrc file change ''9150'' to ''9050'' and change ''9151'' to ''9051'', and then close the file.

Thank you.
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 30, 2013, 07:21:16 AM
 #9

Aha. On further investigation, it seems that recent versions of the Tor Browser Bundle on Windows and Mac use port 9150 instead of 9050 for some reason, causing every application that tries to use Tor (except for TBB itself) to break completely. Shocked

First of all, do not enter 9150 as your SOCKS Port in Bitcoin-Qt. Although this will appear to work, Bitcoin-Qt will not realise you are using Tor (since you're using a non-standard port) and will accept non-Tor connections, potentially compromising your anonymity.

Instead, you should add SocksPort 9050 (on a new line) to your torrc file. Leave ControlPort and the existing SocksPort line alone. eg:
Code:
...
SocksPort 9050
SocksPort 9150
ControlPort 9151
Do not do this from within Vidalia, as due to a (probably) unrelated bug Vidalia will not save the file correctly if you have multiple SocksPort lines, instead edit torrc in a text editor (be sure not to save it torrc.txt, as Windows tends to "helpfully" do), then restart Tor.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
April 30, 2013, 12:46:44 PM
 #10

1. I followed your instructions and Tor wouldn't start; these are Tor's messages after adding ''SocksPort 9050'' line to a torrc file:

Warning: SocksListen Addresses can’t be used when there are multiple SocksPort lines
Warning: Failed to parse/validate config: Invalid SocksPort/SockListenAddress configuration
Error: Reading config failed – see warnings above

2. I erased this ''9050 line'' from the file and Tor works again.

3. I use (Vidalia Control Panel -> About):
Vidalia 0.2.21
Tor 0.2.3.25
Qt 4.8.1
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 30, 2013, 02:18:02 PM
 #11

D'oh! Didn't see that. Delete SocksListenAddress. It's not supposed to be used in Tor 0.2.3, and setting it to 127.0.0.1 doesn't even do anything anyway.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
April 30, 2013, 07:53:28 PM
 #12

Thank you very much for your help.

Things look much better now - there is connection between Bitcoin-Qt on my computer and Bitcoin network  Cheesy

When I go to Vidalia Control panel -> Message Log I get this in ''Basic''

''Potentially Dangerous Connection! - One of your applications established a connection through Tor to "68.10.154.87:8333" using a protocol that may leak information about your destination. Please ensure you configure your applications to use only SOCKS4a or SOCKS5 with remote hostname resolution.''

In ''Advanced'' I get three types of messages every few seconds, e.g.:

''[Warning] Your application (using socks4 to port 8333) is giving Tor only an IP address. Applications that do DNS resolves themselves may leak information. Consider using Socks4A (e.g. via privoxy or socat) instead. For more information, please see https://wiki.torproject.org/TheOnionRouter/TorFAQ#SOCKSAndDNS. [1 similar message(s) suppressed in last 5 seconds]''

[Notice] We tried for 15 seconds to connect to '[scrubbed]' using exit $2624AE0466BD02AFAF3F263D4361D79ABE0E7E05~IPredator at 194.132.32.42. Retrying on a new circuit.''

''[Notice] Tried for 120 seconds to get a connection to [scrubbed]:8333. Giving up. (waiting for circuit)''

Should I do anything about this?

-----------------------
My torrc file reads now:

# This file was generated by Tor; if you edit it, comments will not be preserved
# The old torrc file was renamed to torrc.orig.1 or similar, and Tor will ignore it

AvoidDiskWrites 1
ControlPort 9151
DataDirectory C:/Program Files/Instalka TOR/Tor Browser/Data/Tor
DirReqStatistics 0
GeoIPFile .\Data\Tor\geoip
Log notice stdout
SocksPort 9050
SocksPort 9150

g0dbra1n
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 30, 2013, 08:10:37 PM
 #13

D'oh! Didn't see that. Delete SocksListenAddress. It's not supposed to be used in Tor 0.2.3, and setting it to 127.0.0.1 doesn't even do anything anyway.


Thanks! This worked for me!
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
May 01, 2013, 02:02:39 AM
 #14

''Potentially Dangerous Connection! - One of your applications established a connection through Tor to "68.10.154.87:8333" using a protocol that may leak information about your destination. Please ensure you configure your applications to use only SOCKS4a or SOCKS5 with remote hostname resolution.''
Set Bitcoin-Qt back to SOCKS 5 and restart.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Loozik (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Born to chew bubble gum and kick ass


View Profile
May 01, 2013, 12:29:01 PM
 #15

Set Bitcoin-Qt back to SOCKS 5 and restart.

That's what I did and... Bitcoin_Qt works  Grin however in Vidalia Control Panel -> Message Logs -> Advanced I get these notices:

[Notice] We tried for 15 seconds to connect to '[scrubbed]' using exit $C34D2B2A0C48DF3E5CFBE8ACAB6E6DDC038294AA~TorExit2MttJocyNL3 at 95.211.213.148. Retrying on a new circuit.

[Notice] Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.

Should I worry about them?

Many thanks for your help.
Foxpup
Legendary
*
Offline Offline

Activity: 4354
Merit: 3042


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
May 02, 2013, 02:19:50 AM
 #16

however in Vidalia Control Panel -> Message Logs -> Advanced I get these notices:

[Notice] We tried for 15 seconds to connect to '[scrubbed]' using exit $C34D2B2A0C48DF3E5CFBE8ACAB6E6DDC038294AA~TorExit2MttJocyNL3 at 95.211.213.148. Retrying on a new circuit.

[Notice] Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.

Should I worry about them?
No. That just means a connection timed out, usually because one of your peers went offline. Happens all the time, whether you're using Tor or not (though obviously it won't show up in Tor's logs if you're not using Tor). Bitcoin-Qt will just try to find another peer to connect to when this happens. Note that this is just a notice, not a warning or error.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
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!