# Adding iptable rules

**URL:** <https://forum.hestiacp.com/t/adding-iptable-rules/490>\
**Category:** Firewall\
**Created:** [February 26, 2020, 7:21pm UTC](https://forum.hestiacp.com/t/adding-iptable-rules/490 "2020-02-26T19:21:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonsoft](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/s/a3d4f5/32.png) [@simonsoft](https://forum.hestiacp.com/u/simonsoft)\
**Post date:** [February 26, 2020, 7:21pm UTC](https://forum.hestiacp.com/t/adding-iptable-rules/490/1 "2020-02-26T19:21:16Z")

</div>

In vestacp, adding a iptables rules in .sh format and copying to /usr/local/vestacp/data/firewall/ seems to work across reboot: [Prevent Firewall from Flushing CLI Rules - Vesta Control Panel - Forum](https://forum.vestacp.com/viewtopic.php?t=16491)

How could I make my custom iptables work with hestia? my iptables are in .sh format like in vesta.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [February 26, 2020, 7:34pm UTC](https://forum.hestiacp.com/t/adding-iptable-rules/490/2 "2020-02-26T19:34:57Z")

</div>

Basicly this hasn’t changed in hestia, the include of custom.sh is still there: [https://github.com/hestiacp/hestiacp/blob/master/bin/v-update-firewall#L127-L130](https://github.com/hestiacp/hestiacp/blob/master/bin/v-update-firewall#L127-L130)

So if you follow this procedure, it should still work.
