Enduser Firewall - not persistent save in iptables https://www.softaculous.com/board/index.php?tid=20417 <![CDATA[Enduser Firewall - not persistent save in iptables]]> https://www.softaculous.com/board/index.php?tid=20417&tpg=1#p60048
Please try restarting zzvirtservice on your server and check if the rules are restored or not.]]>
Fri, 03 Oct 2025 09:52:10 GMT https://www.softaculous.com/board/index.php?tid=20417&tpg=1#p60048
<![CDATA[]]> https://www.softaculous.com/board/index.php?tid=20417&tpg=0#p60047
Today we realized the following scenario which can lead to critical situation if used in production:

1. User creates firewall plan and creates rules
2. User assigns plan to VPS
3. Firewall rules are created on server via command line (NOT PERSISTENT)
4. Rules are also saved in "firewall_plans" DB table
5. If, for any reason, the Virtualizor server must be restarted, all those rules are gone. In order to recover them, i guess you need to edit each VPS > Save.

We use iptables-persistent so we thought of creating a cron job which will automatically save the rules into /etc/iptables/rules.v4 file every 1 minute.

However, this is a tweak which may prevent us from taking this feature into production.

Any suggestions from Virtualizor team ?]]>
Fri, 03 Oct 2025 08:26:14 GMT https://www.softaculous.com/board/index.php?tid=20417&tpg=0#p60047