netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fabricio Archanjo <farchanjo@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: LVS with REDIRECT
Date: Fri, 10 Sep 2010 19:12:20 -0300	[thread overview]
Message-ID: <AANLkTikbs-R1HN4=7AaWSvom2P0Lt8h+aGS5qS6KTRde@mail.gmail.com> (raw)

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,

                 reply	other threads:[~2010-09-10 22:12 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='AANLkTikbs-R1HN4=7AaWSvom2P0Lt8h+aGS5qS6KTRde@mail.gmail.com' \
    --to=farchanjo@gmail.com \
    --cc=netfilter-devel@vger.kernel.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 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).