Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Pablo Sanchez" <pablo@blueoakdb.com>
To: netfilter@lists.netfilter.org
Subject: RE: can i have boolean OR between multiple addresses in iptablesexpression?
Date: Fri, 9 Jun 2006 09:18:00 -0400	[thread overview]
Message-ID: <01b501c68bc7$22461990$0419a8c0@fly> (raw)
In-Reply-To: <20060609003246.GE24839@mini.alaya.net>

 

> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org 
> [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of 
> prosolutions@gmx.net
> Sent: Thursday, June 08, 2006 8:33 PM
> To: netfilter@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@blueoakdb.com
Fax:   603.720.7723 (US)           Fax:  514.371.1255 (Canada)



  reply	other threads:[~2006-06-09 13:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09  0:32 can i have boolean OR between multiple addresses in iptables expression? prosolutions
2006-06-09 13:18 ` Pablo Sanchez [this message]
2006-06-10  7:34   ` Pascal Hambourg
2006-06-10 10:56     ` Pablo Sanchez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01b501c68bc7$22461990$0419a8c0@fly' \
    --to=pablo@blueoakdb.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox