Saturday, July 6, 2024

Bitcoin Core Inbound connections (TOR)

I downloaded Bitcoin Core and the synchronization is full. I’m in a double NAT state of affairs (I haven’t got permission to change the settings of one of many routers) so as a way to obtain inbound connections, I downloaded TOR. (I’m utilizing macOS and utilizing homebrew) The issue is that my node would not have a correct inbound connection. I used my AWS EC2 ubuntu server to test the reachability of my onion tackle on my Macintosh utilizing the command beneath and bought a constructive consequence. Nonetheless, my bitcoin node would not have any inbound connections. Can any individual assist me?

$ torsocks nc -vz owdhrhanf7tfovhqckqi5qiuoe6pnm3py3kpkk257×333г47xgxdbiid.onion 8333
Connection to owdhrhanf7tfovhqckgi5qiuoe6pnm3py3kpkk257×333r47xgd5iid.onion 8333 port [tcp/*] succeeded!

$ bitcoin-cli getnetworkinfo

{
  "model": 270000,
  "subversion": "/Satoshi:27.0.0/",
  "protocolversion": 70016,
  "localservices": "0000000000000c09",
  "localservicesnames": [
    "NETWORK",
    "WITNESS",
    "NETWORK_LIMITED",
    "P2P_V2"
  ],
  "localrelay": true,
  "timeoffset": -1,
  "networkactive": true,
  "connections": 11,
  "connections_in": 1,
  "connections_out": 10,
  "networks": [
    {
      "name": "ipv4",
      "limited": true,
      "reachable": false,
      "proxy": "127.0.0.1:9050",
      "proxy_randomize_credentials": true
    },
    {
      "name": "ipv6",
      "limited": true,
      "reachable": false,
      "proxy": "127.0.0.1:9050",
      "proxy_randomize_credentials": true
    },
    {
      "name": "onion",
      "limited": false,
      "reachable": true,
      "proxy": "127.0.0.1:9050",
      "proxy_randomize_credentials": true
    },
    {
      "name": "i2p",
      "limited": true,
      "reachable": false,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "cjdns",
      "limited": true,
      "reachable": false,
      "proxy": "127.0.0.1:9050",
      "proxy_randomize_credentials": true
    }
  ],
  "relayfee": 0.00001000,
  "incrementalfee": 0.00001000,
  "localaddresses": [
    {
      "address": "owdhrhanf7tfovhqckqi5qiuoe6pnm3py3kpkk257x333r47xgxd5iid.onion",
      "port": 8333,
      "score": 4
    }
  ],
  "warnings": ""
}

bitcoin.conf Connection choices

onlynet=onion
hear=1
proxy=127.0.0.1:9050
bind=127.0.0.1
externalip=owdhrhanf7tfovhqckqi5qiuoe6pnm3py3kpkk257x333r47xgxd5iid.onion
natpmp=0
upnp=0

torrc

SOCKSPort 9050
ControlPort 9051

Log discover file /decide/homebrew/var/log/tor.log

CookieAuthentication 1
CookieAuthFile /decide/homebrew/var/lib/tor/control_auth_cookie

DataDirectory /decide/homebrew/var/lib/tor
HiddenServiceDir /decide/homebrew/var/lib/tor/BitcoinCore/
HiddenServicePort 8333 127.0.0.1:8333

On the time of this writing, there may be one inbound connection, although which does not appear to be correctly related. (unroutable).

{
    "id": 47,
    "addr": "127.0.0.1:57728",
    "addrbind": "127.0.0.1:8333",
    "community": "not_publicly_routable",
    "companies": "0000000000000000",
    "servicesnames": [
    ],
    "relaytxes": false,
    "lastsend": 1716916677,
    "lastrecv": 1716916678,
    "last_transaction": 0,
    "last_block": 0,
    "bytessent": 359,
    "bytesrecv": 296,
    "conntime": 1716916555,
    "timeoffset": -1,
    "pingtime": 1.487564,
    "minping": 1.205581,
    "model": 70016,
    "subver": "",
    "inbound": true,
    "bip152_hb_to": false,
    "bip152_hb_from": false,
    "startingheight": 0,
    "presynced_headers": -1,
    "synced_headers": -1,
    "synced_blocks": -1,
    "inflight": [
    ],
    "addr_relay_enabled": false,
    "addr_processed": 0,
    "addr_rate_limited": 0,
    "permissions": [
    ],
    "minfeefilter": 0.00000000,
    "bytessent_per_msg": {
      "feefilter": 32,
      "ping": 64,
      "pong": 32,
      "sendaddrv2": 24,
      "sendcmpct": 33,
      "verack": 24,
      "model": 126,
      "wtxidrelay": 24
    },
    "bytesrecv_per_msg": {
      "ping": 32,
      "pong": 64,
      "sendaddrv2": 24,
      "verack": 24,
      "model": 152
    },
    "connection_type": "inbound",
    "transport_protocol_type": "v1",
    "session_id": ""
  }

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles