# Is it neccessary to configure IPTables

**URL:** <https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430>\
**Category:** Help with Setup/Upgrade\
**Created:** [April 20, 2015, 9:33pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430 "2015-04-20T21:33:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![temple](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@temple](https://discourse.mailinabox.email/u/temple)\
**Post date:** [April 20, 2015, 9:33pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430/1 "2015-04-20T21:33:50Z")

</div>

After setting up my server, but before installing MiaB, I configured IPTables with the required rules for MiaB. However, during installation, I observed that the installer set up UFW instead of detecting and using the already-configured IPTables.

so my question is, Is it necessary to set up IPTables, or is the installer coded to set up UFW with all the necessary rules?

---

<div class="post-metadata">

**Author:** ![JoshData](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/joshdata/32/2153_2.png) [@JoshData](https://discourse.mailinabox.email/u/JoshData)\
**Post date:** [April 20, 2015, 9:48pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430/2 "2015-04-20T21:48:18Z")

</div>

As the instructions say, you actually _may not_ do any configuration of the system before setting up Mail-in-a-Box.

The setup will configure `ufw`.

---

<div class="post-metadata">

**Author:** ![temple](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@temple](https://discourse.mailinabox.email/u/temple)\
**Post date:** [April 20, 2015, 9:49pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430/3 "2015-04-20T21:49:16Z")

</div>

With all the required rules?

---

<div class="post-metadata">

**Author:** ![JoshData](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/joshdata/32/2153_2.png) [@JoshData](https://discourse.mailinabox.email/u/JoshData)\
**Post date:** [April 20, 2015, 10:21pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430/4 "2015-04-20T22:21:16Z")

</div>

Depends on what you mean by required, I guess.

It turns on `ufw`, which blocks all ports, and then it opens up the ports that are needed for the box to function. I think there’s another thread here somewhere that lists which ports those are.

---

<div class="post-metadata">

**Author:** ![temple](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@temple](https://discourse.mailinabox.email/u/temple)\
**Post date:** [April 20, 2015, 10:42pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430/5 "2015-04-20T22:42:01Z")

</div>

I’m familiar with all the ports, but it states in the setup guide, under **Firewall settings** , that specific ports have to be open. I just assumed that the script is not coded to configure the firewall and open the posts, so I went ahead and set up IPTables.

But that’s all cleared up now, so no problema!

---

<div class="post-metadata">

**Author:** ![JoshData](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/joshdata/32/2153_2.png) [@JoshData](https://discourse.mailinabox.email/u/JoshData)\
**Post date:** [April 20, 2015, 11:46pm UTC](https://discourse.mailinabox.email/t/is-it-neccessary-to-configure-iptables/430/6 "2015-04-20T23:46:38Z")

</div>

Ahha, I see what you mean. I will clarify that!
