netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* LVS with REDIRECT
@ 2010-09-10 22:12 Fabricio Archanjo
  0 siblings, 0 replies; only message in thread
From: Fabricio Archanjo @ 2010-09-10 22:12 UTC (permalink / raw)
  To: netfilter-devel

Hello,

I've made a labs to test a load balance conection to Squid. I have two
machines with Squid, which are balanced with LVS on Firewall. Look at
my ipvsadm -L -n output:

TCP  10.10.10.1:8080 rr
  -> 192.168.1.2:3128             Masq    1      0          0
  -> 192.168.1.3:3128             Masq    1      0          0

The IP 10.10.10.1 is my local network, where are my hosts. 192.168.1.2
and 192.168.1.3 are my Squids. When I set 10.10.10.1 directly on
browser the balance works perfect. But i need to use like transparent
proxy, then i did this rule:

iptables -t nat -A PREROUTING -i eth2 -p tcp -s 10.10.10.0/24 --dport
80 -j REDIRECT --to-port 8080

When i applied this rule, any traffic to http port match in this rule
but it is not redirect my traffic to 8080. may someone help me???

Thanks all,

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

only message in thread, other threads:[~2010-09-10 22:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-10 22:12 LVS with REDIRECT Fabricio Archanjo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).