P
P
partisan422019-05-06 13:57:58
iptables
partisan42, 2019-05-06 13:57:58

How to make iptables work after reboot?

Good day. Faced a problem. The solution most likely lies on the surface, but I'm at a loss, in which direction to dig?
There is a server on CentOS 7, KVM with two virtual machines is raised on it.
The provider cable comes directly to this machine.
Using iptables, traffic is routed to virtual machines.
The Internet comes on ppp.
The essence of the problem is as follows.
After a reboot, both manually and emergency (turning off the light, for example), everything rises with a bang, but there is no Internet on virtual machines.
I do systemctl status iptables, I see everything is fine, everything works. But it obviously doesn't work.
But if you do systemctl stop iptables && systemctl start iptables, then everything immediately rises.
At the same time, nothing seemed to have changed. As it was full from autoload, it is now raised.
Can you please tell me how to diagnose the problem? And tell me where to dig to solve it?
Thanks in advance:)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-05-06
@q2digger

I assume that you have already disabled and (or) removed the regular firewalld and already installed the iptables-services package.
Here you have iptables running and you have added some rules to it.
What's in the /etc/sysconfig/iptables file?
If empty do
iptables-save > /etc/sysconfig/iptables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question