All of lore.kernel.org
 help / color / mirror / Atom feed
From: KOVACS Krisztian <hidden@balabit.hu>
To: netfilter@lists.netfilter.org
Subject: Re: dnat to multiple destination
Date: Wed, 26 Oct 2005 16:19:29 +0200	[thread overview]
Message-ID: <200510261619.30003@nienna> (raw)
In-Reply-To: <20051026140258.79270.qmail@web53313.mail.yahoo.com>


  Hi,

On Wednesday 26 October 2005 16.02, °° þãþã ßêrûâñg °° wrote:
> recently i read iptables man page,
> in the DNAT part :
> You  can  add  several --to-destination options.  If
> you specify more than
> one destination address, either via an address range
> or multiple --to-des­
> tination  options,  a simple round-robin (one after
> another in cycle) load
> balancing takes place between these adresses.
>
> in my mind, it sounds like:
> iptables -A PREROUTING -s xxx.xxx.xxx.xxx -p tcp
> --dport 80 -j DNAT --to-destination aaa.aaa.aaa.aaa
> --to-destination bbb.bbb.bbb.bbb
>
> but it says invalid arguments.
> which part was wrong ?

  Unfortunately that possibility was removed when restructuring the 
Linux NAT for the 2.6.11 Linux release. Should work with older kernels, 
or you can work it around by using two DNAT rules and the 'random' 
match from patch-o-matic-ng. Ugly, but it should work that way.
 
http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO-3.html#ss3.14

-- 
 Regards,
  Krisztian Kovacs


  parent reply	other threads:[~2005-10-26 14:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-26 14:02 dnat to multiple destination =?unknown-8bit?b?sLAg/uP+4yDf6nL74vFnILCw?=
2005-10-26 14:10 ` Mariusz Kruk
2005-10-26 14:13 ` Jörg Harmuth
2005-10-26 14:14 ` dnat to multiple destination *correction* =?unknown-8bit?b?sLAg/uP+4yDf6nL74vFnILCw?=
2005-10-26 14:19 ` KOVACS Krisztian [this message]
2005-10-26 14:22   ` dnat to multiple destination =?unknown-8bit?b?sLAg/uP+4yDf6nL74vFnILCw?=
2005-10-26 17:14   ` Henrik Nordstrom

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=200510261619.30003@nienna \
    --to=hidden@balabit.hu \
    --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.