Persistent IPTABLES configuration

I am trying to make my iptables configuration persist over reboots. I have installed the SSH addon and that’s how I have connected to the command line and set the iptables configuration.

The problem is that in my living room, I have only WiFi, and I have a bunch of IoT devices requiring a wired network connection. I am running Home Assistant on a Raspberry Pi 4, and I have connected my Pi to the WiFi and connected the wired interface to an 8-port Gigabit switch. I have installed a DHCP server addon and right now, the Pi is acting as a DHCP server and automatically assigns IPs to my devices.

My problem is that the iptables configuration doesn’t persist over reboots, and I need every time to manually add them. I was wondering if there is an elegant way to make those changes persist. I have installed haos_rpi4-64 and apparently, this is the supervised version as the changes I do on the root partition are getting overwritten at boot and I am unable to save my iptables configuration.

So according to the installation methods, if I install the HA OS, I would be able to make changes to the system, but I can’t find the right installation medium.

Please keep in mind that I am relatively new to HA and I tried to google it to no avail.