From: Ted Kaczmarek <tedkaz@optonline.net>
To: Ralf Spenneberg <lists@spenneberg.org>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Excluding IP ranges from masquerade rules
Date: Mon, 13 Oct 2003 22:39:02 -0400 [thread overview]
Message-ID: <1066099141.22093.28.camel@tarkus> (raw)
In-Reply-To: <1066051471.4193.63.camel@kermit>
Thanks to all for the great reponses and choices, but I like
Ulrich Gebauer's way the best :-)
iptables -t nat -A POSTROUTING -s x.x.x.x/x -j ACCEPT
iptables -t nat -A POSTROUTING -s y.y.y.y -j ACCEPT
iptables -t nat -A POSTROUTING -j MASQUERADE
Makes the most sense to me and will be the easiest way for me to teach
others.
Thanks again,
Ted
On Mon, 2003-10-13 at 09:24, Ralf Spenneberg wrote:
> Am Mon, 2003-10-13 um 11.44 schrieb Ted Kaczmarek:
> > 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?
> Only if you can combine them in one network, like:
> 10.0.0.0/8 and 11.0.0.0/8 can be written as 10.0.0.0/7
>
> > or
> > Is their a way to have POSTROUTING only have affect on a certain
> > interface?
> You can use -o eth0 to specify the interface in you rules.
>
> Cheers,
>
> Ralf
prev parent reply other threads:[~2003-10-14 2:39 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
2003-10-13 13:24 ` Ralf Spenneberg
2003-10-14 2:39 ` Ted Kaczmarek [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=1066099141.22093.28.camel@tarkus \
--to=tedkaz@optonline.net \
--cc=lists@spenneberg.org \
--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