Bitcoin Forum
May 11, 2024, 06:13:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin node - VPN or Tor  (Read 1213 times)
shadowbummer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 14, 2017, 12:36:19 AM
 #1

Hi all

Im turning an old laptop into a bitcoin full node on Unbuntu.  Is it advisable to hide my IP for security?  If so what's the best way?  It seems that most VPN services are terrible, so should I be using TOR?

Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
June 14, 2017, 04:07:58 AM
 #2

Hiding your IP address does not increase security, it only increases privacy. You can use Bitcoin Core over Tor so long as you have the Tor daemon installed. Here are instructions for using Tor with Bitcoin Core: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md

Shermand100
Jr. Member
*
Offline Offline

Activity: 55
Merit: 2


View Profile WWW
June 25, 2017, 11:10:13 AM
 #3

Here are instructions for using Tor with Bitcoin Core: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md


That's a great guide I've used for helping make nodes.
I like how it's configurable in sort of two modes. Tor only, or reachable by IPv4, IPv6 and Tor. If privacy is the main concern then best stick with Tor only.

I thought it was also worth making yuo aware of

banscore=<n>   Threshold for disconnecting misbehaving peers (default: 100)
bantime=<n>   Number of seconds to keep misbehaving peers from reconnecting (default: 86400)

which can be adde to the     /home/username/.bitcoin/bitcoin.conf

I've heard it helps prevent DDOS, I'm no expert, but now I'm curious as to how effective it is. Just thought it was worth a mention as you had security as an issue in your first post.

Full list of bitcoin-cli commands here

https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments

http://pinode.co.uk How to Guide Library for Nodes
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
June 25, 2017, 05:07:32 PM
 #4

banscore=<n>   Threshold for disconnecting misbehaving peers (default: 100)
bantime=<n>   Number of seconds to keep misbehaving peers from reconnecting (default: 86400)

which can be adde to the     /home/username/.bitcoin/bitcoin.conf

I've heard it helps prevent DDOS, I'm no expert, but now I'm curious as to how effective it is. Just thought it was worth a mention as you had security as an issue in your first post.
The banning system in Bitcoin Core is supposed to help prevent DoS attacks, not just DDoS specifically. It does work, but it really is only used for disconnecting and temporarily banning nodes that are misbehaving and sending mangled data, not necessarily attacking you. If you were under a DoS or DDoS attack, the ban system may not be all that effective although it may help a bit.

Shermand100
Jr. Member
*
Offline Offline

Activity: 55
Merit: 2


View Profile WWW
June 25, 2017, 08:30:11 PM
 #5

Yeah, I just heard it helps, I wouldn't expect it to be definitive.

I did a little digging on google but didn't find much on how it creates it's "ban score". Do you know? I'm assuming it just rates the quality of information it receives from another node, time stamp, attempted double spends etc?

http://pinode.co.uk How to Guide Library for Nodes
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
June 25, 2017, 10:24:17 PM
 #6

Yeah, I just heard it helps, I wouldn't expect it to be definitive.

I did a little digging on google but didn't find much on how it creates it's "ban score". Do you know? I'm assuming it just rates the quality of information it receives from another node, time stamp, attempted double spends etc?
The banscore is incremented for each piece of data that is received that an honest node wouldn't be sending. For example, receiving an invalid block from a node increments the banscore by 100, resulting in an instant disconnect and ban for that node for 24 hours. There are a variety of other things that can increase the ban score and its all littered throughout the message processing and validation code.

AgonyPaid
Full Member
***
Offline Offline

Activity: 315
Merit: 100



View Profile
June 28, 2017, 02:55:37 PM
 #7

Hi all

Im turning an old laptop into a bitcoin full node on Unbuntu.  Is it advisable to hide my IP for security?  If so what's the best way?  It seems that most VPN services are terrible, so should I be using TOR?



I used TOP, but I do not like this browser. Very slow and uncomfortable. If I need to hide my IP, I'm using a program SafeIP
It is very convenient to use, and you can choose any country.

amacl1n
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2017, 11:06:24 AM
 #8

If you are setting a node, Tor is the way to go, VPN's are both expensive and not as secure as people think, TOR guarantees your privacy to a big extent and is free to use.
Ashtville
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
June 29, 2017, 01:38:45 PM
 #9

Tor offer a better security, higher encryption, no risk of logs and third parties recording and linking your device work as a node + it's free. I tried ibVPN and PIA and Tor is better for everything except streaming and gaming.
Mirror, Mirror, on the Wa
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
June 29, 2017, 03:14:58 PM
 #10

Yup, Tor is easier to use and more secure. Probably everyone running a node is using TOR with the whole issue and terrible VPN's
predic
Member
**
Offline Offline

Activity: 76
Merit: 10


View Profile
June 30, 2017, 08:11:34 AM
Last edit: June 30, 2017, 08:30:39 AM by predic
 #11

using tor is better option.

if you want tor or bitcoin-cli or bitcoind to start automatically when ubuntu restart, you can try this:
sudo systemctl enable tor.service or update-rc.d tor enable
here is the way to start up bitcoind automatically if your ubuntu restarts/reboot:
Configuration files for upstart are stored under /etc/init/*.conf. this one is for bitcoind:
https://github.com/bitcoin/bitcoin/blob/2d782ab2ce30bf106e34cd3288c9082ac04022f9/contrib/init/bitcoind.conf
so, it should be in your computer here: /etc/init/bitcoind.conf
then run: sudo initctl reload-configuration
sudo service bitcoind start

but generally if you use linux, you can also prevent any process, including bitcoin-cli, to overtake consumption of your CPU and block your computer.

cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time).

I just used in debian:  sudo apt-get install cpulimit
but if you can't get it, then:
wget -O cpulimit.zip https://github.com/opsengine/cpulimit/archive/master.zip
unzip and cd cpulimit-xxx
./configure
make
then maybe you need to copy it to /usr/bin

use top or htop to list all processes and find bitcoin-cli, let's say PID is 1234
cpulimit command is:
cpulimit -p 1234 -l 50
this means, bitcoin can use maximum 50% of your CPU.
you can use also the name of the process:
cpulimit -e bitcoin-cli -l 50

you can use tmux to keep proces running in the background even if you close the terminal/console:
sudo apt-get install tmux
tmux #to start tmux session
start bitcoin-cli, I suppose it is sudo service bitcoin-cli start
then you can close terminal running tmux, bitcoin-cli will continue to run, or you can just go out from tmux, bitcoin-cli will continue to run in the backgroung.
you can do the same with cpulimit inside of tmux.
to go out only from tmux: ctrl+b d or ctrl+b :detach


debit cards websites are companies registered in London by Lithuanians who demand from you your phone, ID and utility bill, that's enough for them to make offshore companies on your name without your knowledge and they can get a bank account and make financial crimes on your name, or they can simply sell IDs. don't give to anyone too much info.
why they need more than your ID when your local bank demands only ID?
don't use coinbase, they are NSA spying shit, they make database of people that use bitcoins.
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!