can someone help me understand why netfilter-persistent service is not restoring iptables configuration after reboot of Ubuntu 24.04 LTS server?
- I installed (I also tried to reinstall) the netfilter-persistent service:
apt install netfilter-persistent
- I saved my iptables rules:
iptables-save > /etc/iptables/rules.v4
- I rebooted my Ubuntu server and after restart my iptables are empty.
- I checked the state of the service but everything seems okay:
systemctl status netfilter-persistent
- I checked that the file rules.v4 is is not empty.
It’s not empty. - I read something about delaying the service with
network.target
property inside the service config.
Didn’t help.
I really don’t have any idea why it’s not working.