Re: was there a syntax rule change regarding the use of '!'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux