iptables failed to start on new Centos 7 server

Support for security such as Firewalls and securing linux
cent1548
Posts: 12
Joined: 2015/10/04 23:08:03

Re: iptables failed to start on new Centos 7 server

Post by cent1548 » 2015/10/05 12:55:29

Hi, pwd, ok, I reinstall iptables, but no change, same error "Applying firewall rules: iptables-restore: line 14 failed".

pwd
Posts: 61
Joined: 2014/12/23 11:54:42

Re: iptables failed to start on new Centos 7 server

Post by pwd » 2015/10/05 13:21:48

What if You type this rules one by one in terminal and then trych iptables-save.
"God, root, what is difference?"

cent1548
Posts: 12
Joined: 2015/10/04 23:08:03

Re: iptables failed to start on new Centos 7 server

Post by cent1548 » 2015/10/05 14:05:21

I downloaded a iptables file from another server (CentOS 7, iptables work fine), then upload it to this new serve, iptables service still cannot start.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: iptables failed to start on new Centos 7 server

Post by gerald_clark » 2015/10/05 16:54:06

What is the output of "uname -a" ?

cent1548
Posts: 12
Joined: 2015/10/04 23:08:03

Re: iptables failed to start on new Centos 7 server

Post by cent1548 » 2015/10/05 23:28:11

uname -a:

Linux ... 3.10.0-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: iptables failed to start on new Centos 7 server

Post by gerald_clark » 2015/10/06 00:47:05

You are not running CentOS. You are running an OpenVFZ container.
You cannot load modules,
The network is not CentOS so centos network utilities don't work with it.
For more information and support see http://openvz.org/Main_Page

cent1548
Posts: 12
Joined: 2015/10/04 23:08:03

Re: iptables failed to start on new Centos 7 server

Post by cent1548 » 2015/10/06 02:22:33

This is a dedicated server, not VPS.

I run

Code: Select all

cat /etc/centos-release
Return:
CentOS Linux release 7.1.1503 (Core)

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: iptables failed to start on new Centos 7 server

Post by gerald_clark » 2015/10/06 02:37:16

Not according to the kernel you are running.
If that is what they told you, you have been cheated.

cent1548
Posts: 12
Joined: 2015/10/04 23:08:03

Re: iptables failed to start on new Centos 7 server

Post by cent1548 » 2015/10/06 03:36:04

I have buy VPS from this hosting provider, CentOS 7 VPS, iptables can work fine.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: iptables failed to start on new Centos 7 server

Post by gerald_clark » 2015/10/06 03:51:35

Go to http://openvz.org/Main_Page and see for yourself.
That is an OpenVZ kernel. Not CentOS.

Post Reply