iptables-restore fails with empty comment in a rule

Solution Unverified - Updated -

Issue

  • When a iptables rule is created with -m comment --comment "", iptables-save is able to save it but iptables-restore fails when it parses the line.

Environment

  • Red Hat Enterprise Linux (RHEL) 7

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