Re: More that one not ! condition in a single rule.

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

 



On Mon, 2012-10-01 at 15:14 -0300, Net Warrior wrote:
> Hi there.
> Does anyone know if it's possible to include more than one ! not
> clause in a single rule ?
> I' have the following
> 
> IPTABLES -A AUDIT-RULE  -d $D_INT  ! -s x.x.x.x \
>          -m limit --limit 10/s -j LOG \
> 
> I'd like to include other IP's, do I have to duplicate the sentence ?

I would use either the iprange match, or ipset, which will make your
rules clearer to read as well.

Andy


--
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