* Re: was there a syntax rule change regarding the use of '!'
2012-08-29 16:08 was there a syntax rule change regarding the use of '!' Elvar
@ 2012-08-29 12:30 ` Neal Murphy
2012-08-29 18:49 ` Jan Engelhardt
1 sibling, 0 replies; 4+ messages in thread
From: Neal Murphy @ 2012-08-29 12:30 UTC (permalink / raw)
To: netfilter
On Wednesday, August 29, 2012 12:08:08 PM Elvar wrote:
> Hello,
>
> I just deployed by first Ubuntu 12.04 install and I was seeing errors in
> my typical iptables script. I found that I had to change the order of
> where I placed my '!' in the rule. For example...
>
> OLD -> iptables -A FORWARD -i eth1 -s ! 192.168.42.0/24 -j DROP
> NEW -> iptables -A FORWARD -i eth1 ! -s 192.168.42.0/24 -j DROP
>
>
> I don't see anything about this in the changelog so I was just wondering
> if anyone else has seen this as well.
A little hard to find. But yes, this changed a little while ago to 'prefix'
only (! -opt value); 'infix' (-opt ! value) is no longer valid.
^ permalink raw reply [flat|nested] 4+ messages in thread
* was there a syntax rule change regarding the use of '!'
@ 2012-08-29 16:08 Elvar
2012-08-29 12:30 ` Neal Murphy
2012-08-29 18:49 ` Jan Engelhardt
0 siblings, 2 replies; 4+ messages in thread
From: Elvar @ 2012-08-29 16:08 UTC (permalink / raw)
To: netfilter
Hello,
I just deployed by first Ubuntu 12.04 install and I was seeing errors in
my typical iptables script. I found that I had to change the order of
where I placed my '!' in the rule. For example...
OLD -> iptables -A FORWARD -i eth1 -s ! 192.168.42.0/24 -j DROP
NEW -> iptables -A FORWARD -i eth1 ! -s 192.168.42.0/24 -j DROP
I don't see anything about this in the changelog so I was just wondering
if anyone else has seen this as well.
Thanks,
Elvar
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: was there a syntax rule change regarding the use of '!'
2012-08-29 16:08 was there a syntax rule change regarding the use of '!' Elvar
2012-08-29 12:30 ` Neal Murphy
@ 2012-08-29 18:49 ` Jan Engelhardt
2012-08-29 19:38 ` Elvar
1 sibling, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2012-08-29 18:49 UTC (permalink / raw)
To: Elvar; +Cc: netfilter
On Wednesday 2012-08-29 18:08, Elvar wrote:
>
> I just deployed by first Ubuntu 12.04 install and I was seeing errors in my
> typical iptables script. I found that I had to change the order of where I
> placed my '!' in the rule. For example...
>
> OLD -> iptables -A FORWARD -i eth1 -s ! 192.168.42.0/24 -j DROP
> NEW -> iptables -A FORWARD -i eth1 ! -s 192.168.42.0/24 -j DROP
>
> I don't see anything about this in the changelog so I was just wondering if
> anyone else has seen this as well.
A long time ago in a galaxy far, far away....
commit 0f16c725aadaac7e670d632ecbaea3661ff00827 (v1.4.3~46^2~3)
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Fri Jan 30 04:55:38 2009 +0100
libxtables: prefix/order - move check_inverse to xtables.c
This also adds a warning that intrapositional negation support
is deprecated.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: was there a syntax rule change regarding the use of '!'
2012-08-29 18:49 ` Jan Engelhardt
@ 2012-08-29 19:38 ` Elvar
0 siblings, 0 replies; 4+ messages in thread
From: Elvar @ 2012-08-29 19:38 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter
On 8/29/2012 1:49 PM, Jan Engelhardt wrote:
> On Wednesday 2012-08-29 18:08, Elvar wrote:
>> I just deployed by first Ubuntu 12.04 install and I was seeing errors in my
>> typical iptables script. I found that I had to change the order of where I
>> placed my '!' in the rule. For example...
>>
>> OLD -> iptables -A FORWARD -i eth1 -s ! 192.168.42.0/24 -j DROP
>> NEW -> iptables -A FORWARD -i eth1 ! -s 192.168.42.0/24 -j DROP
>>
>> I don't see anything about this in the changelog so I was just wondering if
>> anyone else has seen this as well.
> A long time ago in a galaxy far, far away....
>
>
> commit 0f16c725aadaac7e670d632ecbaea3661ff00827 (v1.4.3~46^2~3)
> Author: Jan Engelhardt <jengelh@medozas.de>
> Date: Fri Jan 30 04:55:38 2009 +0100
>
> libxtables: prefix/order - move check_inverse to xtables.c
>
> This also adds a warning that intrapositional negation support
> is deprecated.
>
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Thanks! :)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-29 19:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 16:08 was there a syntax rule change regarding the use of '!' Elvar
2012-08-29 12:30 ` Neal Murphy
2012-08-29 18:49 ` Jan Engelhardt
2012-08-29 19:38 ` Elvar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).