All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple SNAT source address ranges
@ 2005-09-02 18:44 Kirk Hoganson
  2005-09-06 20:27 ` curby .
  0 siblings, 1 reply; 2+ messages in thread
From: Kirk Hoganson @ 2005-09-02 18:44 UTC (permalink / raw)
  To: netfilter

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Multiple SNAT source address ranges
  2005-09-02 18:44 Multiple SNAT source address ranges Kirk Hoganson
@ 2005-09-06 20:27 ` curby .
  0 siblings, 0 replies; 2+ messages in thread
From: curby . @ 2005-09-06 20:27 UTC (permalink / raw)
  To: Kirk Hoganson; +Cc: netfilter

On 9/2/05, Kirk Hoganson <kirk2@lenderlab.com> wrote:
> I am attempting to create SNAT rules that will round-robin through a
> series of addresses from different ranges as per the man page.

http://netfilter.org/patch-o-matic/pom-base.html#pom-base-nth 

probably does what you need.  In fact, its example is round robin SNAT. =)

--Curby


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-06 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-02 18:44 Multiple SNAT source address ranges Kirk Hoganson
2005-09-06 20:27 ` curby .

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.