Answer the question
In order to leave comments, you need to log in
How to check if iptables starts at system startup?
just explain what needs to be done to fix the error at the bottom I will publish the error:
chkconfig --list iptables
Attention! Only SysV services are shown below (no systemd services).
SysV configuration data can be overridden
by native systemd configuration.
To see a complete list of systemd services run: systemctl list-unit-files
To get a list of services for a specific systemd target run:
systemctl list-dependencies [target]
error reading iptables service information: No such file or directory
Answer the question
In order to leave comments, you need to log in
iptables is not a service and the question "is iptables started at system startup" is meaningless. Similarly, you can ask "How to check that when the car engine starts, the wheels start, the air filter starts?"
iptables is part of the Linux kernel, this part may be missing if the kernel is compiled this way (for example, for gadgets or for industrial computers), but in regular Linux (for PCs, for servers) it is almost always there.
The correct question would be: "how to see the iptables rules?" By default, iptables is there, but "empty", without rules. View -
sudo iptables -L
sudo iptables -L -t nat
distribution of CentOS 7?
if yes, then there is already firewalld , it is controlled by
If you want to replace it with the "classic" iptables + start wrapper, you will have to install the iptables-services package, and disable firewalld.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question