B
B
by_EL2021-02-16 01:58:16
linux
by_EL, 2021-02-16 01:58:16

iptables not starting after reboot on ubuntu server 20.04?

disabled ufw
sudo systemctl enable iptables
sudo systemctl enable iptables.services
Everything is fine after the restart the daemon does not start automatically

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-02-17
@by_EL

What demon? iptables is not a daemon. This service simply loads the saved rules from a file when it starts, and does nothing when it stops (or clears the tables, depending on the setting).
To save the currently loaded rules, just call netfilter-persistent save.
If after a reboot in iptables -L there are the necessary rules, then everything works correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question