From: "Rob Sterenborg" <rob@sterenborg.info>
To: netfilter@lists.netfilter.org
Subject: RE: Excluding IP ranges from masquerade rules
Date: Mon, 13 Oct 2003 12:03:40 +0200 [thread overview]
Message-ID: <20031013125520.A8BA91B9BC@smtp.ttp.nl> (raw)
In-Reply-To: <1066038290.5801.35.camel@tarkus>
> I presently exclude 1 ip block in POSTROUTING using "!
> X.X.X.X/24" . Is their a way to specify multiple ranges that
> are excluded?
If you mean to specify a range instead of a complete block, there is a
Netfilter "iprange" patch for that. You'll have to compile a new kernel
and iptables.
http://www.netfilter.org/documentation/pomlist/pom-base.html#iprange
Create multiple rules for each range you want to exclude.
> Is their a way to have POSTROUTING only have affect on a
> certain interface?
iptables -t nat -A POSTROUTING -o <if_out> ...
You cannot use "-i <if_in>".
See "man itables".
Rob
next prev parent reply other threads:[~2003-10-13 10:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-13 9:44 Excluding IP ranges from masquerade rules Ted Kaczmarek
2003-10-13 10:03 ` Rob Sterenborg [this message]
2003-10-13 13:24 ` Ralf Spenneberg
2003-10-14 2:39 ` Ted Kaczmarek
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=20031013125520.A8BA91B9BC@smtp.ttp.nl \
--to=rob@sterenborg.info \
--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