Running bitcoind behind OpenVpn

EDIT Found some interesting stuff in the log relating to tor…

root@sf-vps:~# cat ~/.bitcoin/debug.log | grep tor -i 2016-11-13 16:52:21 Default data directory /root/.bitcoin 2016-11-13 16:52:21 Using data directory /root/.bitcoin 2016-11-13 16:52:21 Using at most 125 connections (1024 file descriptors available) 2016-11-13 16:52:29 torcontrol thread start 2016-11-13 17:08:43 Default data directory /root/.bitcoin 2016-11-13 17:08:43 Using data directory /root/.bitcoin 2016-11-13 17:08:43 Using at most 125 connections (1024 file descriptors available) 2016-11-13 17:08:50 torcontrol thread start 2016-11-13 17:08:50 tor: Error connecting to Tor control socket 2016-11-13 17:08:50 tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect 2016-11-13 17:08:51 tor: Error connecting to Tor control socket 2016-11-13 17:08:51 tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect 2016-11-13 17:08:52 tor: Error connecting to Tor control socket 2016-11-13 17:08:52 tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect


I’ve installed the Bitcoin software on Ubuntu 16.04. I’m able to run bitcoind -daemon for a few minutes, but after a while the process crashes.

Interestingly, I don’t see any reasons in ~/.bitcoin/debug.log explaining why the program might have terminated.

I suspect a couple of things:

  1. Not enough disc space to store the entire blockchain. However, I don’t think this is the case as running df - h shows a combined total of only ~41% disc consumption:

root@sf-vps:~# df -h Filesystem Size Used Avail Use% Mounted on udev 241M 0 241M 0% /dev tmpfs 50M 3.1M 47M 7% /run /dev/vda1 20G 6.3G 13G 34% / tmpfs 247M 0 247M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 247M 0 247M 0% /sys/fs/cgroup tmpfs 50M 0 50M 0% /run/user/0

  1. Server is not able to receive inbound messages as I’m running a VPN. Is it possible that I’m experiencing a networking issue, e.g. inbound traffic to port 8333 (the default for bitcoind) is not being allowed through my VPN? I can’t remember how to change the VPN config to allow connections on specific ports, but that’s where I’m looking next…

root@sf-vps:~# netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 159.203.240.1 0.0.0.0 UG 0 0 0 eth0 10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0 10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 10.12.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 159.203.240.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0 Thanks in advance for your help 🙂

Recent Questions – Bitcoin Stack Exchange

Running a Bitcoin node (behind Firewall / NAT or anything else? disallowing inbound connections)

I consider running a bitcoin full node on a raspberry Pi 3. I want to attach the raspberry Pi into my home-network (wifi). When I check my IP address I have a public address to the outside (which is changing from time to time, however is only one of 5 different addresses) and via NAT given by my ISP. I don’t know what is between “my” public IP and my homenetwork in detail.

As I understand it correctly a bitcoin node does only good to the overall network iff it can accept inbound connections, therefore my raspberry pi must be publicly available (behind all this NAT whatever). If I run a bitcoin node I would like to use it at least by myself as a trusted node inside my mobile bitcoin wallet…

In the end I see two ways to do that:

  • Resolve NAT issues with one of the following techniques: Upnp, TURN, NAT hole punching, STUN, ICE, IGDP, NAT-PMP, PCP, ALG, wathever else there, I don’t know…
  • Or running a hidden service.

So my question:

  • Is it good/bad/ok to “only” allow inbound connections as a tor hidden service?
  • Is there an easy way to get a bitcoin node with “traditional” means available as a public node inside a home network?

Recent Questions – Bitcoin Stack Exchange

Bank Of Canada Paper Explores Factors Behind Bitcoin Volatility

As virtual currencies like bitcoin become more established, the exchange rate will be less affected by speculator perceptions, according to a staff working paper [PDF] on the value of virtual currencies written for the Bank of Canada by Wilko Bolt of the Netherlands Bank and Maarten R.C. van Oort of the Bank of Canada. Over time, […]

The post Bank Of Canada Paper Explores Factors Behind Bitcoin Volatility appeared first on CCN: Financial Bitcoin & Cryptocurrency News.

News – CCN: Financial Bitcoin & Cryptocurrency News