iptables upgrade: NOT operator parser trouble
Hi,
I've found another issue after upgrading iptables from 1.4.8 to 1.4.18. This rule used to work:
iptables -A R34 --protocol tcp --dport ! 80 -j C525
iptables complains:
iptables-restore v1.4.18: invalid port/service `!' specified
Fix the parser or fix my rules? :)
Cheers,
Thomas
Florian Westphal
maintainerQuoted 4 lines · Thomas Jarosch
I've found another issue after upgrading iptables from 1.4.8 to 1.4.18. This rule used to work:
iptables -A R34 --protocol tcp --dport ! 80 -j C525
Yes, but iptables used to warn about this:
'Using intrapositioned negation (--option ! this) is deprecated in favor of extrapositioned (! --option this).'
Hi Florian,
Quoted 9 lines · On Friday, 28. June 2013 22:20:38 Florian Westphal wrote:
Quoted 4 lines · Thomas Jarosch
I've found another issue after upgrading iptables from 1.4.8 to 1.4.18.
This rule used to work:
iptables -A R34 --protocol tcp --dport ! 80 -j C525Yes, but iptables used to warn about this:
'Using intrapositioned negation (--option ! this) is deprecated in favor of extrapositioned (! --option this).'
probably my iptables version was too old to show that warning, at least I never noticed it.
Anyhow, I fixed my rule generator.
Thanks,
Thomas