Skip to contentSkip to conversation

option "--state" cannot be inverted

DISCUSSION Sergei Zhirikov 2 participants 2 messages Jun 12, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

If I try to use

-m state ! --state NEW

as a part of the iptables command line I get this error message:

iptables v1.4.11.1: state: option "--state" cannot be inverted.

It worked fine with iptables 1.4.10. I'm wondering if this an intended change or one more in the series of similar bugs introduced in 1.4.11?

--
Sergei.

#1 lore raw
Quoted 4 lines · Sergei Zhirikov

Hi,

If I try to use

Quoted 8 lines

-m state ! --state NEW

as a part of the iptables command line I get this error message:

iptables v1.4.11.1: state: option "--state" cannot be inverted.

It worked fine with iptables 1.4.10. I'm wondering if this an intended change or one more in the series of similar bugs introduced in 1.4.11?

Similar oversight, unfortunately. But you can use -m conntrack instead which does not have the issue.