How to make iptables rules persistent after reboot on Linux - Linux Tutorials - Learn Linux Configuration

Iptables rules are by default not persistent after reboot. The objective is to make iptables rules persistent after reboot.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-make-iptables-rules-persistent-after-reboot-on-linux/

Great article, I had a problem with setting up all the firewall rules after reboot on Linux. I have tried to create a script that will be automatically executed at the boot time using cron, but it does not work for me, the second solution was to create a systemd unit (service) that will execute the script at the boot time, but it does not work for me as well, but then i found your article which describes iptables-service and it is simple and works great! Thank you :slight_smile: