LVS with REDIRECT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux