LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Client and Director in the same machine with IPVS-NAT

To: "Miguel A. Felipe" <michel@xxxxxxxxxxxxxxxxx>
Subject: Re: Client and Director in the same machine with IPVS-NAT
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Carlos Lozano <clozano@xxxxxxxxxx>
Date: Fri, 2 Jul 2004 14:00:42 +0200
El vie, 02 de jul de 2004, a las 13:36, Miguel A. Felipe escribio:
> The configuration for client and director in the same machine, is supposed
> to be only one client?

The schema is:

                       It is the director
                ---------------------------------------------
External client ---> IPVS:443 --> Local:443 ---> IPVS:80 ---> RealServer

The problem happens when Local:443 go to localIPVS:80, because the
packet is discarted by the next lines in ip_vs_core.c:

if (skb->pkt_type != PACKET_HOST) || skb->dev == &loopback_dev) { 
        IP_VS_DBG(12, "packet type=%d proto=%d daddr=%d.%d.%d.%d ignored\n",
                       skb->pkt_type,
                       iph->protocol,
                       NIPQUAD(iph->daddr));
        return NF_ACCEPT;
}  

Regards,
Carlos.

-- 
 ___         _          \  |  /  Consulting
| . |._ _  _| | ___  ___  ___    http://www.andago.com
|   || ' |/ . |<_> |/ . |/ . \__ GNU/Linux
|_|_||_|_|\___|<___|\_. |\___/     _ \  __|\ \  /
 Carlos A. Lozano   <___'/ | \ -_) __/\__ \ >  <  -_)
 [ carlos.lozano@xxxxxxxxxx ]\___|_|  ____/ _/\_\___|
 [ calb@xxxxxxxxx           ]  http://www.ePSXe.com
<Prev in Thread] Current Thread [Next in Thread>