All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kapetanakis Giannis <bilias@edu.physics.uoc.gr>
To: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: Round robin load balance to local port range
Date: Fri, 06 Nov 2009 18:07:55 +0200	[thread overview]
Message-ID: <4AF449DB.1040600@edu.physics.uoc.gr> (raw)
In-Reply-To: <4AF446D7.1070406@trash.net>

On 06/11/09 17:55, Patrick McHardy wrote:
> The manpage is incorrect (patches welcome :), it will use the first
> port as long as the tuples don't clash. The --random option can be
> used to randomly select a port from the range.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>    

--random does the job both for DNAT and REDIRECT
I guess random is better that nothing :)

Just for clarification: the state of the packet will be remembered right?
I don't want to send it first to one port and later to another.

regards and thanks for the quick answer

Giannis

ps. I found another bug
--random in DNAT has to be put at the end of the rule
otherwise if you put it before --to-destination
error: "Multiple --to-destination not supported"

  reply	other threads:[~2009-11-06 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 15:30 Round robin load balance to local port range Kapetanakis Giannis
2009-11-06 15:55 ` Patrick McHardy
2009-11-06 16:07   ` Kapetanakis Giannis [this message]
2009-11-06 16:16     ` Patrick McHardy

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=4AF449DB.1040600@edu.physics.uoc.gr \
    --to=bilias@edu.physics.uoc.gr \
    --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.