# Time out with firewalld on RHEL 7

**URL:** <https://discuss.elastic.co/t/time-out-with-firewalld-on-rhel-7/32799>\
**Category:** Elasticsearch\
**Created:** [October 22, 2015, 6:37pm UTC](https://discuss.elastic.co/t/time-out-with-firewalld-on-rhel-7/32799 "2015-10-22T18:37:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdconner](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mdconner](https://discuss.elastic.co/u/mdconner)\
**Post date:** [October 22, 2015, 6:37pm UTC](https://discuss.elastic.co/t/time-out-with-firewalld-on-rhel-7/32799/1 "2015-10-22T18:37:08Z")

</div>

Has anyone gotten Elasticsearch to work on Red Hat Linux 7 with firewalld enabled? I always get time out errors with multicast or unicast enabled. Everything works fine when firewalld is disabled (not long term solution). I have opened ports 9200 and 9300-9400 for UDP in firewalld.

I first posted this under Logstash ( MasterNotDiscoveredException with RHEL 7 Firewall on LS 1.4.2 & ES 1.2.1 ) but when "curl 166.17.25.142:9200" failed, they blamed the network.

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [October 22, 2015, 10:42pm UTC](https://discuss.elastic.co/t/time-out-with-firewalld-on-rhel-7/32799/2 "2015-10-22T22:42:37Z")

</div>

Hi,

For both 9200 & 9300 Elasticsearch uses TCP. For multicast you also need to open port 54328:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html)

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html)

---

<div class="post-metadata">

**Author:** ![mdconner](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mdconner](https://discuss.elastic.co/u/mdconner)\
**Post date:** [October 23, 2015, 5:37pm UTC](https://discuss.elastic.co/t/time-out-with-firewalld-on-rhel-7/32799/3 "2015-10-23T17:37:49Z")

</div>

Thanks that got the curl command to work. This topic can now be closed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:42pm UTC](https://discuss.elastic.co/t/time-out-with-firewalld-on-rhel-7/32799/4 "2017-07-05T23:42:57Z")

</div>


