Operating system: Ubuntu 20.04
OS version: 20.04
When my server restarts, all the firewall rules get lost and I go back to default (ACCEPT/ACCEPT/ACCEPT)
I want to use
iptables (instead of firewalld). I removed firewalld with
sudo apt purge firewalld
I have a set of scripts that automatically update the iptables rules. They’re working fine.
In the Webmin Linux Firewall page, I see my firewall rules as expected. I can make changes and click Apply Configuration and they go into effect.
I can click the Activate at boot button (after first clicking the Yes button). It looks as if that action took effect, too. BUT… the Activate at boot is set to No after a reboot.
Furthermore, if I reboot my server (say, by going to my VPS hosting control panel and clicking Reboot), when it comes back up,
iptables -nL shows the default ACCEPT/ACCEPT/ACCEPT again.
/etc/iptables.up.rules file contains the expected information (reflecting my rules). I have been able to restore the rules manually using
I don’t know how to check if the boot sequence invokes
Any thoughts on making iptables active with the saved rules after a reboot? Many thanks.