From: "Pablo Sanchez" <pablo@blueoakdb.com>
To: netfilter@lists.netfilter.org
Subject: RE: can i have boolean OR between multiple addresses in iptables expression?
Date: Sat, 10 Jun 2006 06:56:21 -0400 [thread overview]
Message-ID: <02b001c68c7c$837bf490$0419a8c0@fly> (raw)
In-Reply-To: <448A7604.6040701@plouf.fr.eu.org>
> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
> Pascal Hambourg
> Sent: Saturday, June 10, 2006 3:34 AM
> To: netfilter@lists.netfilter.org
> Subject: Re: can i have boolean OR between multiple addresses
> in iptables expression?
>
> I think that using a user defined chain is not only a matter of
> obviousness, in some case the result may be different from using two
> separate rules. For example :
>
> iptables -A INPUT -s 127.0.0.1 -m limit -j ACCEPT
> iptables -A INPUT -s 172.16.0.0/24 -m limit -j ACCEPT
>
> and :
>
> iptables -A INPUT -s 127.0.0.1 -j user_chain
> iptables -A INPUT -s 172.16.0.0/24 -j user_chain
> iptables -A user_chain -m limit -j ACCEPT
>
> behave differently because, if I understand correctly, each 'limit'
> match has its own counters and timers. Am I right ?
Absolutely. You do have to be certain to 'play computer' correctly when you
write the rules. Know that each rule is an AND and apply OR's correctly
with judicious use of the -j ACCEPT target.
---
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)
prev parent reply other threads:[~2006-06-10 10:56 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 ` can i have boolean OR between multiple addresses in iptablesexpression? Pablo Sanchez
2006-06-10 7:34 ` can i have boolean OR between multiple addresses in iptables expression? Pascal Hambourg
2006-06-10 10:56 ` Pablo Sanchez [this message]
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='02b001c68c7c$837bf490$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