elasticsearch7: How to use IPv6?

From: Larry Rosenman <ler_at_FreeBSD.org>
Date: Mon, 08 Nov 2021 21:14:43 UTC
Greetings,

I just set up a new ES7 cluster on FreeBSD-CURRENT from ports as of 
Sunday.  I made the following changes to elasticsearch.yml:

[I] ➜ diff -u /usr/local/etc/elasticsearch/elasticsearch.yml.sample 
/usr/local/etc/elasticsearch/elasticsearch.yml
--- /usr/local/etc/elasticsearch/elasticsearch.yml.sample	2021-11-07 
19:02:06.000000000 -0600
+++ /usr/local/etc/elasticsearch/elasticsearch.yml	2021-11-07 
19:34:58.836573000 -0600
@@ -14,7 +14,7 @@
  #
  # Use a descriptive name for your cluster:
  #
-#cluster.name: my-application
+cluster.name: lerctr-es7
  #
  # ------------------------------------ Node 
------------------------------------
  #
@@ -55,7 +55,7 @@
  # By default Elasticsearch is only accessible on localhost. Set a 
different
  # address here to expose this node on the network:
  #
-#network.host: 192.168.0.1
+network.host: _bce0_
  #
  # By default Elasticsearch listens for HTTP traffic on the first free 
port it
  # finds starting at 9200. Set a specific HTTP port here:
@@ -69,11 +69,11 @@
  # Pass an initial list of hosts to perform discovery when this node is 
started:
  # The default list of hosts is ["127.0.0.1", "[::1]"]
  #
-#discovery.seed_hosts: ["host1", "host2"]
+discovery.seed_hosts: [borg.lerctr.org]
  #
  # Bootstrap the cluster using an initial set of master-eligible nodes:
  #
-#cluster.initial_master_nodes: ["node-1", "node-2"]
+cluster.initial_master_nodes: [borg.lerctr.org]
  #
  # For more information, consult the discovery and cluster formation 
module documentation.
  #

ler in ~ at borg
[I] ➜


my bce0 interface has:
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 
1500
	options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
	ether a4:ba:db:29:66:95
	inet 192.168.200.4 netmask 0xfffffc00 broadcast 192.168.203.255
	inet6 fe80::a6ba:dbff:fe29:6695%bce0 prefixlen 64 scopeid 0x2
	inet6 2600:1700:210:b18f:a6ba:dbff:fe29:6695 prefixlen 64 deprecated 
autoconf
	inet6 2600:1700:210:b18c:a6ba:dbff:fe29:6695 prefixlen 64 deprecated 
autoconf
	inet6 2600:1700:210:b18e:a6ba:dbff:fe29:6695 prefixlen 64 deprecated 
autoconf
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

ler in ~ at borg
[I] ➜

ES doesn't seem to even touch IPv6:
[I] ➜ netstat -an | grep 9200
tcp4       0      0 192.168.200.4.9200     192.168.200.11.55556   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.50528   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.48506   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.36843   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.27609   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.42691   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.54310   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.11691   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.53366   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.21401   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.63340   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.31646   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.65174   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.23394   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.46920   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.25106   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.58756   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.5462    
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.63875   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.10303   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.40784   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.40133   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.48829   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.25588   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.19126   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.33372   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.2631    
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.10136   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.30846   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.17673   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.2817    
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.57977   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.14326   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.12469   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.22638   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.1936    
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.30611   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.8319    
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.43579   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.55236   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.53849   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.25319   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.12877   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.60714   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.49469   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.59938   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.22717   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.64446   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.30744   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.11.22214   
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.41817    
ESTABLISHED
tcp4       0      0 192.168.200.4.41817    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61258    
ESTABLISHED
tcp4       0      0 192.168.200.4.61258    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61257    
ESTABLISHED
tcp4       0      0 192.168.200.4.61257    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61256    
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61255    
ESTABLISHED
tcp4       0      0 192.168.200.4.61256    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61254    
ESTABLISHED
tcp4       0      0 192.168.200.4.61255    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.61254    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61253    
ESTABLISHED
tcp4       0      0 192.168.200.4.61253    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     192.168.200.4.61251    
ESTABLISHED
tcp4       0      0 192.168.200.4.61251    192.168.200.4.9200     
ESTABLISHED
tcp4       0      0 192.168.200.4.9200     *.*                    LISTEN

Why?

Any help/hints are gratefully appreciated!
-- 
Larry Rosenman                     http://people.freebsd.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@FreeBSD.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106