IPTABLES Fail to save on CentOS 7 box

Support for security such as Firewalls and securing linux
Post Reply
User avatar
Fern.3.P.O
Posts: 6
Joined: 2016/09/21 16:26:48

IPTABLES Fail to save on CentOS 7 box

Post by Fern.3.P.O » 2017/02/23 20:57:30

Support Group,

Need your help, I'm running CentOS 7 with IPTABLES version 1.4.21, when adding new rules to the policy chains and save my entries by entering
#service iptable save and reboot the box. The new entries are nowhere to be found at restart, entries not saved. I've made sure to disable firewalld to not cause any conflict with iptables. Can you help me understand what configurations I'm missing to successfully save my new entries.
F3rn

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: IPTABLES Fail to save on CentOS 7 box

Post by mghe » 2017/02/23 21:59:22

You you tell step by step what did you do?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: IPTABLES Fail to save on CentOS 7 box

Post by TrevorH » 2017/02/23 22:44:25

Did you literally type #service iptables save ? If so then the # made it a comment and it would not have done anything. OTOH, maybe you meant to use the # to indicate that you were at a root command prompt at the time, in which case it should have worked.
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

User avatar
Fern.3.P.O
Posts: 6
Joined: 2016/09/21 16:26:48

Re: IPTABLES Fail to save on CentOS 7 box

Post by Fern.3.P.O » 2017/02/24 00:21:39

@TrevorH - I typed in the command without the # I also followed the instruction set on https://www.svennd.be/iptables-in-cento ... l-install/ to disable the firewalld and install iptables services. Can you guys tell me were I'm going wrong please.
F3rn

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: IPTABLES Fail to save on CentOS 7 box

Post by TrevorH » 2017/02/24 07:20:25

It's service iptables save not iptable
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

Post Reply