All of lore.kernel.org
 help / color / mirror / Atom feed
From: paolino <paolino@splinder.it>
To: netfilter@lists.netfilter.org
Subject: load-balancing question
Date: Fri, 14 Nov 2003 16:18:32 +0100	[thread overview]
Message-ID: <1068823111.2737.58.camel@localhost> (raw)

I have the followin set-up:

Chain PREROUTING (policy ACCEPT 6389 packets, 781517 bytes)
 pkts bytes target     prot opt in     out     source              
destination
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0           
X.X.X.X     tcp dpt:5222 to:192.168.18.40:5222
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0           
X.X.X.X     tcp dpt:91 to:192.168.18.10:81
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0           
X.X.X.X     tcp dpt:92 to:192.168.18.20:81
23834 1248K web  tcp  --  *      *       0.0.0.0/0           
X.X.X.X     tcp dpt:80
 
Chain POSTROUTING (policy ACCEPT 78621 packets, 4200654 bytes)
 pkts bytes target     prot opt in     out     source              
destination
 2720  209K MASQUERADE  all  --  *      *       192.168.18.0/24     
0.0.0.0/0
 
Chain OUTPUT (policy ACCEPT 5824 packets, 375096 bytes)
 pkts bytes target     prot opt in     out     source              
destination
 
Chain web (1 references)
 pkts bytes target     prot opt in     out     source              
destination
10293  537K DNAT       tcp  --  *      *       0.0.0.0/0           
X.X.X.X     tcp to:192.168.18.20:80 192.168.18.10:80

The purpose of the web chain is to load-balance web connections to 2
servers on my inside network. The questions is that apparently almost
all connection to port 80 are being directed to the 192.168.18.20:80
server, and very few to the other server.

e.g.  33 connections to the .20 and 2 connections to .10.

Can someone point me to what i'm doing wrong !?!?!?


Cheers

paolino@splinder.it




                 reply	other threads:[~2003-11-14 15:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1068823111.2737.58.camel@localhost \
    --to=paolino@splinder.it \
    --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.