# Can't block port in firewall

**URL:** <https://forum.hestiacp.com/t/cant-block-port-in-firewall/1298>\
**Category:** Uncategorized\
**Created:** [July 15, 2020, 2:35am UTC](https://forum.hestiacp.com/t/cant-block-port-in-firewall/1298 "2020-07-15T02:35:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakpt](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@deepakpt](https://forum.hestiacp.com/u/deepakpt)\
**Post date:** [July 15, 2020, 2:35am UTC](https://forum.hestiacp.com/t/cant-block-port-in-firewall/1298/1 "2020-07-15T02:35:43Z")

</div>

I have default Hestiacp installation ( except changed ssh port). I had an app running on port 9999 , so I created new rule in firewall to allow this port.  
Since then I reverse proxy that app through nginx. When I deleted that rule, the port is still open. I tried creating new rule to block connections to 9999, but it is still open. What should I do to block this port?

---

<div class="post-metadata">

**Author:** ![falzo](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/falzo/32/10_2.png) [@falzo](https://forum.hestiacp.com/u/falzo)\
**Post date:** [July 15, 2020, 12:31pm UTC](https://forum.hestiacp.com/t/cant-block-port-in-firewall/1298/2 "2020-07-15T12:31:31Z")

</div>

I recommend to manually check your iptables settings from command line. Depending on what you already tried you want to make sure the default policy is still DROP and hasn’t somehow changed…

---

<div class="post-metadata">

**Author:** ![deepakpt](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@deepakpt](https://forum.hestiacp.com/u/deepakpt)\
**Post date:** [July 15, 2020, 3:04pm UTC](https://forum.hestiacp.com/t/cant-block-port-in-firewall/1298/3 "2020-07-15T15:04:17Z")

</div>

Thanks. I will do that. I have no experience with Iptables.
