I have stopped/disabled firewalld and restarted logstash/Elasticsearch services but netstat only shows them listening only on IPv6.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 1398/node
tcp 0 0 127.0.0.1:10004 0.0.0.0:* LISTEN 1403/python3
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1400/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1664/master
tcp6 0 0 127.0.0.1:9600 :::* LISTEN 35380/java
tcp6 0 0 :::6052 :::* LISTEN 35380/java
tcp6 0 0 :::6053 :::* LISTEN 35380/java
tcp6 0 0 :::9000 :::* LISTEN 793/java
tcp6 0 0 :::5514 :::* LISTEN 35380/java
tcp6 0 0 :::5515 :::* LISTEN 35380/java
tcp6 0 0 :::5516 :::* LISTEN 35380/java
tcp6 0 0 :::5517 :::* LISTEN 35380/java
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 35107/java
tcp6 0 0 ::1:9200 :::* LISTEN 35107/java
tcp6 0 0 :::5044 :::* LISTEN 35380/java
tcp6 0 0 127.0.0.1:9300 :::* LISTEN 35107/java
tcp6 0 0 ::1:9300 :::* LISTEN 35107/java
tcp6 0 0 :::22 :::* LISTEN 1400/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1664/master
Firewalld Status
systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
Apr 23 12:29:08 sof-elk systemd[1]: Starting firewalld - dynamic firewall daemon...
Apr 23 12:29:08 sof-elk systemd[1]: Started firewalld - dynamic firewall daemon.
Apr 23 12:29:09 sof-elk firewalld[798]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed ...ng it now.
Apr 26 10:54:05 sof-elk systemd[1]: Stopping firewalld - dynamic firewall daemon...
Apr 26 10:54:07 sof-elk systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
and when i try to change to network.host: 0.0.0.0 i get below error..It is commented out by default
Apr 26 11:14:48 sof-elk systemd[1]: Starting Elasticsearch...
Apr 26 11:14:59 sof-elk elasticsearch[35785]: ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines befor...icsearch.
Apr 26 11:14:59 sof-elk elasticsearch[35785]: bootstrap check failure [1] of [1]: the default discovery settings are unsuitable for production use; at l...onfigured
Apr 26 11:14:59 sof-elk elasticsearch[35785]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/elasticsearch.log
Apr 26 11:14:59 sof-elk systemd[1]: elasticsearch.service: main process exited, code=exited, status=78/n/a
Apr 26 11:14:59 sof-elk systemd[1]: Failed to start Elasticsearch.
Apr 26 11:14:59 sof-elk systemd[1]: Unit elasticsearch.service entered failed state.
Apr 26 11:14:59 sof-elk systemd[1]: elasticsearch.service failed.