can i have boolean OR between multiple addresses in iptablesexpression?

Pablo Sanchez pablo at blueoakdb.com
Fri Jun 9 15:18:00 CEST 2006


 

> -----Original Message-----
> From: netfilter-bounces at lists.netfilter.org 
> [mailto:netfilter-bounces at lists.netfilter.org] On Behalf Of 
> prosolutions at gmx.net
> Sent: Thursday, June 08, 2006 8:33 PM
> To: netfilter at lists.netfilter.org
> Subject: can i have boolean OR between multiple addresses in 
> iptablesexpression?
> 
> 
> 
> for example i would like to have a rule with -s !127.0.0.1 OR 
> !172.16.0.0/24   

I believe you can't.  What I've done is simply create several rules with the
predicate slightly different in each to accomplish an OR.  If you'd like to
make it obvious, you can create a new chain and place your different rules
there.
---
Pablo Sanchez - Blueoak Database Engineering, Inc
Ph:    819.459.1926          Toll free:  888.459.1926
Cell:  819.918.9731                Pgr:  pablo_p at blueoakdb.com
Fax:   603.720.7723 (US)           Fax:  514.371.1255 (Canada)




More information about the netfilter mailing list