From: Kirk Hoganson <kirk2@lenderlab.com>
To: netfilter@lists.netfilter.org
Subject: Multiple SNAT source address ranges
Date: Fri, 02 Sep 2005 12:44:55 -0600 [thread overview]
Message-ID: <43189DA7.2040604@lenderlab.com> (raw)
I am attempting to create SNAT rules that will round-robin through a
series of addresses from different ranges as per the man page.
Apparently I am making mistakes with the syntax, as running my script
results in some errors. Can someone tell me how I need to structure
these rules? Here are some examples of what I have tried:
$IPTABLES -t nat -A POSTROUTING -o $EXT -m state --state NEW -p tcp
--dport 80 -j SNAT --to-source 24.28.18.56 --to-source 24.28.18.57
--to-source 24.28.18.58
Or:
$IPTABLES -t nat -A POSTROUTING -o $EXT -m state --state NEW -p tcp
--dport 80 -j SNAT --to-source 24.28.18.56-24.28.18.63 --to-source
16.7.15.32-16.7.15.39 --to-source 16.7.87.64-16.7.87.71
How do I specify more than one source address from seperate ranges?
next reply other threads:[~2005-09-02 18:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-02 18:44 Kirk Hoganson [this message]
2005-09-06 20:27 ` Multiple SNAT source address ranges curby .
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=43189DA7.2040604@lenderlab.com \
--to=kirk2@lenderlab.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.