Adding iptable rules

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

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

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

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

1 Like