# Centos 7 - Docker and FirewallD

**URL:** <https://meta.discourse.org/t/centos-7-docker-and-firewalld/32045>\
**Category:** Self-hosting\
**Tags:** docker, email\
**Created:** [13 באוגוסט,‏ 2015,‏ 12:29am UTC](https://meta.discourse.org/t/centos-7-docker-and-firewalld/32045 "2015-08-13T00:29:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nawarei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawarei/32/44280_2.png) [@nawarei](https://meta.discourse.org/u/nawarei)\
**Post date:** [15 באוגוסט,‏ 2015,‏ 2:40am UTC](https://meta.discourse.org/t/centos-7-docker-and-firewalld/32045/5 "2015-08-15T02:40:36Z")

</div>

Hi,

Ok I got it going, I needed to add this in as well

```
firewall-cmd --permanent --zone=trusted --add-port=25/tcp

```

Now when you do this you will start getting other issues with docker not being able to resolve DNS etc, so you will need to add those rules in as well.

Regards,

Rei

---

_[View the full topic](https://meta.discourse.org/t/centos-7-docker-and-firewalld/32045)._
