All of lore.kernel.org
 help / color / mirror / Atom feed
* load-balancing question
@ 2003-11-14 15:18 paolino
  0 siblings, 0 replies; only message in thread
From: paolino @ 2003-11-14 15:18 UTC (permalink / raw)
  To: netfilter

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-14 15:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-14 15:18 load-balancing question paolino

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.