Why while starting iptables service following error is thrown "Applying iptables firewall rules: iptables-restore: line X failed" ?

Solution Verified - Updated -

Issue

  • Some customer iptables rules are configured in the file. While restarting the iptables services, getting error as iptables-restore: line X failed [FAILED]
  • Iptables service is not getting started and throwing error as below:
root@HOSTNAME ~]# service iptables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
[root@HOSTNAME ~]# service iptables start
Applying iptables firewall rules: iptables-restore: line X failed
                                                           [FAILED]
[root@HOSTNAME ~]#

Environment

  • Red Hat Enterprise Linux (Any version)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content