I installed CentOS 7 for the first time recently and decided to stick with iptables, as it was what I was used to, so I installed iptables-services on the CentOS 7 box and I disabled and masked firewalld.
On CentOS 6 I usually disabled the firewall by running
# service iptables stop
it would stop the firewall and also remove all rules so an
# iptables -S
would show the following
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
However on CentOS 7 if I type
# service iptables stop or systemctl stop iptables
and I issue the
iptables -S command following this all the rules are still defined
Is there something else I am missing that maybe was configured by default on CentOS 6 that I have not configured correctly on the new CentOS7?
Default in-built rules in iptables
Re: Default in-built rules in iptables
Are you sure that firewalld isn't still installed and running? If you aim to use iptables-services then I would yum remove it entirely.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Default in-built rules in iptables
In addition to disabling and masking it, I think you have to stop it (or reboot): systemctl stop firewalld