I want to connect 3 external PCs.
Three internal devices tested have been connected correctly.
I want to set it to communicate with an external PC.
Testing Elasticsearch.yml on the internal network
--------------------- pc1 ----------------
cluster.name: "test-cluster"
node.name: "master"
node.master: true
node.data: false
transport.tcp.port: 9300
http.port: 9200
discovery.seed_hosts: ["192.168.0.x1:9300","192.168.0.x2:9301","192.168.0.x3:9302"]
cluster.initial_master_nodes: ["master"]
network.host: 0.0.0.0
--------------------- pc2 ----------------
cluster.name: "test-cluster"
node.name: "data1"
node.master: false
node.data: true
transport.tcp.port: 9301
http.port: 9201
discovery.seed_hosts: ["192.168.0.x1:9300","192.168.0.x2:9301","192.168.0.x3:9302"]
cluster.initial_master_nodes: ["master"]
network.host: 0.0.0.0
--------------------- pc3 ----------------
cluster.name: "test-cluster"
node.name: "data2"
node.master: false
node.data: true
transport.tcp.port: 9302
http.port: 9202
discovery.seed_hosts: ["192.168.0.x1:9300","192.168.0.x2:9301","192.168.0.x3:9302"]
cluster.initial_master_nodes: ["master"]
network.host: 0.0.0.0
This works very well.
but,
I want an external network connection, not an internal network connection.
218.xxx.xxx.xxx
Open port: 9200, 9300,5601
182.xxx.xxx.1
Open port: 9211,9212
182.xxx.xxx.2
Open port: 9311,9312
elasticsearch.yml
--------------------- 218.xxx.xxx.xxx----------------
cluster.name: "test-cluster"
node.name: "master"
node.master: true
node.data: false
transport.tcp.port: 9300
http.port: 9200
discovery.seed_hosts: ["218.xxx.xxx.xxx:9300","182.xxx.xxx.1:9311","182.xxx.xxx.2:9312"]
cluster.initial_master_nodes: ["master"]
network.host: 0.0.0.0
--------------------- 182.xxx.xxx.1----------------
cluster.name: "test-cluster"
node.name: "data1"
node.master: false
node.data: true
transport.tcp.port: 9311
http.port: 9211
discovery.seed_hosts: ["218.xxx.xxx.xxx:9300","182.xxx.xxx.1:9311","182.xxx.xxx.2:9312"]
cluster.initial_master_nodes: ["master"]
network.host: 0.0.0.0
--------------------- 182.xxx.xxx.2----------------
cluster.name: "test-cluster"
node.name: "data2"
node.master: false
node.data: true
transport.tcp.port: 9312
http.port: 9212
discovery.seed_hosts: ["218.xxx.xxx.xxx:9300","182.xxx.xxx.1:9311","182.xxx.xxx.2:9312"]
cluster.initial_master_nodes: ["master"]
network.host: 0.0.0.0
The process is running on each PC.
218.xxx.xxx.xxx Search 182.xxx:9211 on Google on PC
The Json format information screen that appears when executed is displayed.
However, when I index it, I get a warning message.
"master not discovered yet"
There is no port forwarding problem.
Please let me know if there are any settings I have missed.