I am running the Hestia Control Panel on a host with Ubuntu 22.
The iptables rules are in a file called /etc/iptables/rules.v4
Over time this file grew to more than 900 lines and it contains a lot of duplicate rules coming from the HestiaCP. At the moment some lines occur 28 times.
Is this normal or did I miss some configuration?
Any idea of a good way of cleaning it up at this point?
I just discovered an /etc/iptables.rules file, as well and this one looks a bit more tidy, with just 92 lines and no multiple occuring rules, at last as far as I could see.
Does this mean that the HestiaCP-related rules from /etc/iptables/rules.v4 are obsolete and that I can simply delete them?
No but because I don’t use neither Ubuntu nor iptables-persistent on any server.
You installed or maybe it was already installed in the Ubuntu image provided by your hosting, the package iptables-persistent, you don’t need this package to save and load iptables rules on boot, Hestia does it so you can purge the package:
Indeed, my Ubuntu compute instance resides in the Oracle Cloud Infrastructure.
As far as I know, Oracle tweaks the Ubuntu images it provides. After making sure that the Hestia Control Panel was compatible with Ubuntu, I used the Ubuntu image provided by Oracle without considering the iptables-persistent package.
For the Hestia Control Panel are you then using Debian on your servers?