Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
“Local addresses” section of “netinfo” does not show the IPv6 addresses added using “externalip” config option. (Probably there is no announce of this addresses). Bitnodes.io show the version string of all IPs, but after put many of the IPv6 on active monitoring, only the first one specified with “externalip” are “UP” and the others are “UNREACHABLE”. (These are not my real addresses).
root@debianpc:~# bitcoin-cli -netinfo ` Bitcoin Core client v27.0.0 - server 70016/Satoshi:27.0.0/
ipv4 onion i2p npr total block
in 0 1 0 7 8
out 6 3 1 0 10 2
total 6 4 1 7 18
Local addresses 143.22.123.17 port 8333 score 27 qsddczpwthdeddm3viv4brhxbbxdm5eh5ywasdfmmaefctwrrgjdw5hmid.onion port 8333 score 4 awxyf6dvprtsssixojegfwjdn5xka62kpxecbwdovk23ohpqm.b32.i2p port 0 score 4 `
Expected behaviour
root@debianpc:~# bitcoin-cli -netinfo ` Bitcoin Core client v27.0.0 - server 70016/Satoshi:27.0.0/
ipv4 onion i2p npr total block
in 0 1 0 7 8
out 6 3 1 0 10 2
total 6 4 1 7 18
Local addresses 143.22.123.17 port 8333 score 27 2006:f10:0:aa::234 port 8333 score 16 2006:f10:0:aa::111 port 8333 score 16 qsddczpwthdeddm3viv4brhxbbxdm5eh5ywasdfmmaefctwrrgjdw5hmid.onion port 8333 score 4 awxyf6dvprtsssixojegfwjdn5xka62kpxecbwdovk23ohpqm.b32.i2p port 0 score 4 `
Steps to reproduce
This is a very specific setup:
- In a machine A with no public IPv4 nor IPv6 address, start bitcoind with these options:
#a public ipv4 and ipv6 address of another machine, let’s say machine B externalip=143.22.123.17 externalip=qsddczpwthdeddm3viv4brhxbbxdm5eh5ywasdfmmaefctwrrgjdw5hmid.onion externalip=2006:f10:0:aa::234 externalip=2006:f10:0:aa::111
-
Now establish a reverse ssh tunnel from machine A to B on machine A, run: autossh -N -f -o “ExitOnForwardFailure=yes” -o “ServerAliveInterval=10” -o “ServerAliveCountMax=3” -R 143.22.123.17:8333:127.0.0.1:8333 root@IP_machine_B
-
Test all the externalip’s using bitnodes.io, they shoud be reachable on the default port now. This configuration should provide IPv6 connectivity to the local node and the -netinfo should show the IPv6 announced using externalip config option (like it did with the public IPv4 specified).
Relevant log output
No response
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v27.0.0
Operating system and version
Debian 11
Machine specifications
No response