All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Kapetanakis Giannis <bilias@edu.physics.uoc.gr>
Cc: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: Round robin load balance to local port range
Date: Fri, 06 Nov 2009 17:16:19 +0100	[thread overview]
Message-ID: <4AF44BD3.3050103@trash.net> (raw)
In-Reply-To: <4AF449DB.1040600@edu.physics.uoc.gr>

Kapetanakis Giannis wrote:
> 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.

Correct.

> 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"

Thanks, fixed in git.

      reply	other threads:[~2009-11-06 16:16 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
2009-11-06 16:16     ` Patrick McHardy [this message]

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=4AF44BD3.3050103@trash.net \
    --to=kaber@trash.net \
    --cc=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.