Running a Full Node Behind Tor for Privacy

12 replies 430 views
rav3n_ninj4Senior Member
Posts: 15 · Reputation: 1643
#1Mar 5, 2023, 01:03 PM
Been running a full node on Bitcoin Core as a Tor hidden service for a bit now. It's set up on a virtual linux server. Looking to create watch-only wallets on my laptop using this full node to generate unsigned transactions and send signed ones back. Just trying to keep my real IP hidden from the Bitcoin network, gonna use a VPN too but don’t wanna rely on that alone.
3 Reply Quote Share
wizard_2016Full Member
Posts: 46 · Reputation: 575
#2Mar 5, 2023, 03:06 PM
Maybe try running an electrum server alongside bitcoind. Then you can use Electrum on your laptop.
0 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#3Mar 5, 2023, 04:33 PM
Even if you're only using the full node on your virtual server, there’s still a risk. It might expose your IP through addr messages or if it gets a getaddr request from its peers. Not sure how your config affects that though.
3 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#4Mar 5, 2023, 07:21 PM
You could set up Bitcoin Core on your laptop to only use Tor. That way you’re not putting too much trust in your VPN provider.
6 Reply Quote Share
rav3n_ninj4Senior Member
Posts: 15 · Reputation: 1643
#5Mar 6, 2023, 08:53 PM
Nice, I set my full node to work with the Tor network. My bitcoin.conf is all set up for it. Now it listens only locally. I’ll use SSH port forwarding on my laptop. Like forwarding 28333 to 8333 on my full node. Hope that’s good. Just worried my home IP could leak via DNS or something... might stick with a VPN with a kill switch for safety.
4 Reply Quote Share
cobra51Newbie
Posts: 52 · Reputation: 31
#6Mar 8, 2023, 03:35 AM
Looks solid, but really need to connect via TOR. If you wanna keep your IP safe and avoid tracking by ISPs, it’s better to use Bitcoin Core with Tor on your watch-only laptop. VPNs and stuff might not cut it if you want full privacy.
1 Reply Quote Share
0xNodeMember
Posts: 307 · Reputation: 80
#7Mar 8, 2023, 08:15 AM
Question: why not use -addnode instead of -connect? If your server goes down, you might wanna add additional nodes, like Tor onion ones. This helps keep your IP hidden from the network.
2 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#8Mar 8, 2023, 10:47 AM
Good point! But yeah, just remember a bad VPN or misconfig can lead to leaks, be it IPv4, IPv6, or DNS.
4 Reply Quote Share
0xNodeMember
Posts: 307 · Reputation: 80
#9Mar 8, 2023, 08:50 PM
Definitely avoid regular VPNs. Unless you’re running your own, like with OpenVPN or Wireguard, trust is a big issue. And for Bitcoin Core, using a VPN feels like overkill anyway.
5 Reply Quote Share
rav3n_ninj4Senior Member
Posts: 15 · Reputation: 1643
#10Mar 8, 2023, 10:30 PM
Started testing it out this way now. Might switch things up later. Appreciate the advice!
0 Reply Quote Share
cobra51Newbie
Posts: 52 · Reputation: 31
#11Mar 9, 2023, 04:08 AM
Using connect makes sure Bitcoin Core talks only with specified nodes, while addnode tries to connect to any others if those fail. I think both can leak your IP through addr messages, but addnode doesn't really help with privacy.
0 Reply Quote Share
rav3n_ninj4Senior Member
Posts: 15 · Reputation: 1643
#12Mar 9, 2023, 08:52 AM
Thanks for all the input! Set it up successfully. The VPN was lifesaver since I accidentally connected straight to the Bitcoin network at one point. But I think the simple setup doesn’t really need a VPN.
2 Reply Quote Share
Posts: 1362 · Reputation: 35
#13Mar 9, 2023, 11:36 AM
Here’s my current client-side config and SSH setup for connecting and the server-side setup too. Just replace the necessary strings.
1 Reply Quote Share

Related topics