I deleted my iptables rules on the hypervisor. How can I get them back?


I deleted my iptables rules after an update from Centos 7.3 to 7.4 and now all the chains are gone. If I restart a VM on the hypervisor, the chain for it appears. How can I get them back? Are these managed by security groups? I haven’t mofidied mine, so they are the default ones.


Maybe u can re-deploy again the vms to try to get the chains again.
The rules are generated in the deploy action.

try to use iptables-save the next time hehe.

I managed to figure it out myself. Just apply the default Security Groups rules. Go to the security groups section in sunstone and click Commit. The rules should be back on all hypervisors for all VMs.