Why does iptables throw the error "Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`)" in RHEL6?

Solution Verified - Updated -

Issue

  • Executing the following iptable rule gives the error shown below:
# iptables -A INPUT -d ! 10.65.223.247 -j REJECT
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).

Environment

  • Red Hat Enterprise Linux 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.