All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vigneswaran R <vignesh@atc.tcs.com>
To: higkoohk <higkoohk@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: How to use a random IP from a pool of static IPs for outgoing traffic
Date: Mon, 22 Jul 2013 10:53:01 +0530	[thread overview]
Message-ID: <51ECC1B5.8090206@atc.tcs.com> (raw)
In-Reply-To: <CAMkC2Wjqx_R=_LCRnjiE1ppZYm+73ATjrLT0+C=UEw+Bp=gBMg@mail.gmail.com>

On 07/19/2013 09:06 AM, higkoohk wrote:
> I have a linux server , use iptables as nat router.
>
> This server has many public static IPs , but the machines in LAN
> always use the default public ip as route.
>
> We need random use out going IPs .
>
>   Anybody know howto with iptables ?

Specifying the public IP range in SNAT may help,

--to-source [ipaddr-ipaddr]


Regards,
Vignesh

  reply	other threads:[~2013-07-22  5:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19  3:36 How to use a random IP from a pool of static IPs for outgoing traffic higkoohk
2013-07-22  5:23 ` Vigneswaran R [this message]
2013-07-22 14:23   ` Nestor A. Diaz

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=51ECC1B5.8090206@atc.tcs.com \
    --to=vignesh@atc.tcs.com \
    --cc=higkoohk@gmail.com \
    --cc=netfilter@vger.kernel.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.