Hello All -
I have a completely locked down environment where we need to open ports for each communication between VMs. So while looking for all the ports used by elastisearch , though I know it is documented to be 9300(range) and 9200 range for communications , I got the below list of communications going on using the below command. I am not able to understand what are these highlighted ports getting used for in elasticsearch. And how can I control them to a certain port ranges as currently these look to be random.
netstat -Wnepoav
tcp 0 0 11.17.58.93:58103 11.13.88.88:63358 ESTABLISHED 0 187864 18250/klzagent keepalive (1859.39/0/0)
tcp 0 0 11.17.58.93:41000 11.17.58.98:9300 ESTABLISHED 110 2482332 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:41622 11.17.58.101:9300 ESTABLISHED 110 2483608 32150/java keepalive (1302.33/0/0)
tcp 0 0 11.17.58.93:9300 11.17.55.248:34816 ESTABLISHED 110 2483553 32150/java keepalive (1367.87/0/0)
tcp 0 0 11.17.58.93:49518 11.17.58.100:9300 ESTABLISHED 110 2480471 32150/java keepalive (2678.59/0/0)
tcp 0 0 11.17.58.93:9300 11.17.58.101:46944 ESTABLISHED 110 2483592 32150/java keepalive (433.98/0/0)
tcp 0 0 11.17.58.93:38860 11.17.55.248:9300 ESTABLISHED 110 2480477 32150/java keepalive (712.51/0/0)
tcp 0 0 11.17.58.93:35306 11.17.58.99:9300 ESTABLISHED 110 4439995 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:9300 11.17.58.99:55252 ESTABLISHED 110 4442087 32150/java keepalive (3989.31/0/0)
tcp 0 0 11.17.58.93:9300 11.17.58.100:42706 ESTABLISHED 110 2484480 32150/java keepalive (450.36/0/0)
tcp 0 0 11.17.58.93:41060 11.17.58.98:9300 ESTABLISHED 110 2482337 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:9300 11.17.55.248:34832 ESTABLISHED 110 2483563 32150/java keepalive (679.74/0/0)
tcp 0 0 11.17.58.93:9300 11.17.58.99:55208 ESTABLISHED 110 4442081 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:49512 11.17.58.100:9300 ESTABLISHED 110 2480469 32150/java keepalive (3563.32/0/0)
tcp 0 0 11.17.58.93:35318 11.17.58.99:9300 ESTABLISHED 110 4439994 32150/java keepalive (3694.40/0/0)
tcp 0 0 11.17.58.93:38834 11.17.55.248:9300 ESTABLISHED 110 2480473 32150/java keepalive (1204.03/0/0)
tcp 0 0 11.17.58.93:9300 11.17.58.100:42692 ESTABLISHED 110 2484474 32150/java keepalive (1236.80/0/0)
tcp 0 0 11.17.58.93:38880 11.17.55.248:9300 ESTABLISHED 110 2480483 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:38914 11.17.55.248:9300 ESTABLISHED 110 2480479 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:41002 11.17.58.98:9300 ESTABLISHED 110 2482331 32150/java keepalive (712.51/0/0)
tcp 0 0 11.17.58.93:9300 11.17.58.99:55198 ESTABLISHED 110 4447769 32150/java keepalive (1105.72/0/0)
tcp 0 0 11.17.58.93:40978 11.17.58.98:9300 ESTABLISHED 110 2482326 32150/java keepalive (1204.03/0/0)
tcp 0 0 11.17.58.93:9300 11.17.55.248:34818 ESTABLISHED 110 2483552 32150/java keepalive (1191.74/0/0)