LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

problems getting direct routing to work

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: problems getting direct routing to work
From: Donald Ball <balld@xxxxxxxxxxxxxxx>
Date: Sun, 9 Apr 2000 16:16:25 -0400 (EDT)
Hi. I'm using LVS in the guise of piranha-0.4.12-1 on RedHat Linux 6.2.
I've successfully gotten LVS working through NAT, hurrah, but I'm planning
on hosting about 75 different web sites in my new LVS farm and I'd rather
not have to maintain three seperate apache configuration files. I'm
inclined to go with direct routing instead of NAT, but I cannot make it
work. To make things easy, I'm working with two nodes.

susan's public interface is 206.66.49.218, her private interface is
192.168.1.1.

johnny's public interface is 206.66.49.219, his private interface is
92.168.1.2.

the virtual ip address i want to put in the cloud is 206.66.49.220,
nat-test.

susan, the router, is configured as follows:

[root@susan piranha-0.4.12]# ipvsadm  
IP Virtual Server version 0.9.7 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP  nat-test.webslingerZ.com:www wlc persistent 60
  -> johnny-internal:www         Route   1000   0          

[root@susan piranha-0.4.12]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:B7:0E:8E:37  
          inet addr:206.66.49.218  Bcast:206.66.49.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13939 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0xe000 

eth0:1    Link encap:Ethernet  HWaddr 00:D0:B7:0E:8E:37  
          inet addr:206.66.49.220  Bcast:206.66.49.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xe000 

eth1      Link encap:Ethernet  HWaddr 00:90:27:F9:10:69  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5821 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5285 errors:0 dropped:0 overruns:0 carrier:0
          collisions:712 txqueuelen:100 
          Interrupt:9 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:70 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

Unfortunately, of course, it's not working properly. When I tcpdump the
private interface on johnny, I see the incoming http requests just like
I'd expect, but johnny does not respond to them. he does respond to http
requests directly over his public interface (and his private interface,
for that matter). I'd suspect an apache misconfiguration, but I have not
specified a Listen or Bind directive for apache. ip forwarding is turned
on for both machines. johnny is perfectly able to ping the outside world
from the command line. can anyone suggest anything i might try at this
point? thanks.

oh, has anyone been able to subscribe to the piranha-specific list i saw
advertised here recently? redhat's mail daemon does not respond to my
requests. oddly enough, their web server has also been a bit flaky over
the past few days - should i be worried about using piranha in production?
;)

- donald



<Prev in Thread] Current Thread [Next in Thread>