F
F
freeSTUD2020-01-16 18:34:47
ubuntu
freeSTUD, 2020-01-16 18:34:47

Why doesn't it save the rules in iptables?

installed Ubuntu Server 18.04 configured and registered rules in iptables and everything works fine until reboot
tried to install sudo apt-get install iptables-persistent
after installation it says whether to save the rules in /etc/iptables/rules.v4 I write yes, I check that the rules are there really registered,
nothing happens when you reboot
The rules there refer to the Nata table The
question is, why can not save the rules and what other options are there for saving the rules?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mikhail Vasilyev, 2020-01-16
@vasilyevmn

Because it worked at 16, and at 18 you need to install 2 packages
Everything else is +/- as well.

D
Dmitry, 2020-01-16
@Tabletko

Because the default in 18.04 is ufw.

M
maniac_by, 2020-01-17
@maniac_by

sudo /etc/init.d/iptables-persistent save
sudo /etc/init.d/iptables-persistent reload

F
freeSTUD, 2020-01-17
@freeSTUD

As a result, I solved the problem like this, I had Webmin installed and there I registered the rules for the Firewall in the admin panel and everything worked, I don’t know why (but the main thing works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question