Skip to contentSkip to conversation

REDIRECT to multiple ports

DISCUSSION Shpend Bakalli 2 participants 2 messages Sep 29, 2004 – Sep 30, 2004

lore
Share & tools
lore
#0 lore raw

I have a transparent squid proxy with 3 running squid processes in it (to make use of mltiprocessor architecture). Each have different ports. I'm using REDIRECT to redirect packets comming with destination port 80 to ports 3127 - 3129 in the proxy server. Although the distribution of the requests should be done in a round-robin fashion, it seems it is not done like that. Any idea how kernel/iptables manages this kind of redirection? Is it a simple round-robin or there is some other method of distribution?

Kernel: 2.6.4-52-smp
Distribution: Suse 9.1

Regards,
Shpend Bakalli

#1 lore raw
Quoted 4 lines · Shpend Bakalli

I have a transparent squid proxy with 3 running squid processes in it (to make use of mltiprocessor architecture). Each have different ports. I'm using REDIRECT to redirect packets comming with destination port 80 to ports 3127 - 3129 in the proxy server. Although the distribution of the requests should be done in a round-robin fashion, it seems it is not done like that. Any idea how kernel/iptables manages this kind of redirection? Is it a simple round-robin or there is some other method of distribution?

Not really Netfilter related, but, why do you need multiple Squid processes to make use of multiprocessor architecture? Squid will spawn child processes by itself and assign incomming requests to them in round robin fashion. Unless you have a huge number of incomming requests per second, this shouldn't be a problem.

Signature · 3 lines
Aleksandar Milivojevic <[email protected]>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7