LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-NAT: configure emergency http server on director

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx, Julian Anastasov <ja@xxxxxx>, Roberto Nibali <ratz@xxxxxx>
Subject: Re: LVS-NAT: configure emergency http server on director
Cc: Alois Treindl <alois@xxxxxxxx>, Joseph Mack <mack.joseph@xxxxxxxxxxxxxxx>
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Mon, 04 Jun 2001 07:31:22 -0400
> Alois Treindl wrote:
> 
> > Yes, but the should come back to the client as if coming from VIP:80,
> > my question is: who takes care of the remapping of the ports?

Does anyone know how the packets get back?

If I have 2 boxes (not part of an LVS) and on the server box
I run 

$ipchains -A input -j REDIRECT telnet serverIP 81 -p tcp

then I can telnet to port 81 on the server box and have a normal
telnet session.

I thought with REDIRECT that the packet with dest-port=81 
was delivered to the listener on serverIP:telnet. How does the
telnetd know to return a packet with source-port=telnet?

I watched with tcpdump on the server here and all I see is a normal
exchange of packets with dest-port=81

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>