All of lore.kernel.org
 help / color / mirror / Atom feed
From: KOVACS Krisztian <hidden@sch.bme.hu>
To: netfilter@lists.netfilter.org
Cc: Khoa Nguyen <khoa.coffee@gmail.com>
Subject: Re: SNAT round-robin broken?
Date: Fri, 10 Feb 2006 22:12:21 +0100	[thread overview]
Message-ID: <200602102212.22491@krak> (raw)
In-Reply-To: <3d00e6dc0602100722l482ae14naa0964f58fb83753@mail.gmail.com>


  Hi,

On Friday 10 February 2006 16:22, Khoa Nguyen wrote:
> I have the following on a box acting as a router between a client and
> a web server:
>
> iptables -t nat -A POSTROUTING --source 10.1.1.1 --destination
> 10.2.1.1 --protocol tcp --dport 80 -j SNAT --to-source
> 192.168.20.1-192.168.20.100
>
> I open several http connections from the client to the server, the
> gateway for some reason SNAT to a single random address only and
> doesn't do round-robin for every socket from the client. Is something
> broken? How I force it to perform round-robin SNAT'ing?
>
> My kernel: 2.6.12-1.1381_FC3
> iptables version: 1.3.4

  Have you tried it with more than one internal IP address connecting to 
multiple destination addresses? Netfilter chooses the translated source 
IP based on the source and destination address of the original 
connection.

-- 
 KOVACS Krisztian


  reply	other threads:[~2006-02-10 21:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10 15:22 SNAT round-robin broken? Khoa Nguyen
2006-02-10 21:12 ` KOVACS Krisztian [this message]
     [not found]   ` <3d00e6dc0602130610j3ccc1c2cseaf06598999ab0b2@mail.gmail.com>
2006-02-13 20:45     ` KOVACS Krisztian
2006-02-13 21:01       ` Khoa Nguyen
2006-02-13 21:30         ` KOVACS Krisztian
2006-02-15 21:47           ` Khoa Nguyen

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=200602102212.22491@krak \
    --to=hidden@sch.bme.hu \
    --cc=khoa.coffee@gmail.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.