LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Changing of network and problem with nat

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Changing of network and problem with nat
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Thu, 10 Jan 2002 10:07:45 -0500
rolyaT yuG wrote:
> 
> I need to move from a
> happily working DR Load-Balancer, to a NAT Load-Balancer. Which I cant seem to
> get working right.  The setup is currently like this:
> 
>                   |
>                   |
>                   |    196.36.x.x
>              ----------
>              |        |
>              |        |
>              ---------- 192.2.1.1
>                   |
>                   |
>                   |
>              ---------- 192.2.1.2
>              |        |
>              |        |
>              ----------
> 
> Just for testing purposes. There is a ingle NIC in the direcot.

make sure you understand the problems of a 1 net VS-NAT

http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO-12.html#ss12.12

you've turned off ICMP redirects, so presumably you have some ideas of the 
pitfalls.

> If I run redir
> on port 80 of the director, and just redirect to the port on the realserver I
> can get through. Which says that the routing is fine. I have added a nat rule:
> 
> iptables -t nat -A POSTROUTING -s 192.2.0.0/255.255.0.0 -d 0.0.0.0/0 -j 
> MASQUERADE

with 2.4 you don't add NAT rules
 
> and done all the turning off of ICMP redirects, as shown in the manual.


> The web page is simply timing out when I try to access it.....

when you get into trouble, telnet is a simpler client. It will
probably just hang here too not telling you more than you know already.

Joe
-- 
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center, 
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA


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