LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS - NAT - SMTP help

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] LVS - NAT - SMTP help
From: Jason Ledford <jledford@xxxxxxxxxxxx>
Date: Tue, 16 Oct 2007 22:22:27 -0400
So I have been reading as much documentation as I can and I can't figure 
out what I am doing wrong.  I have a lvs setup and am using centos and 
piranha to configure it.  the lvs has 2 nics, public ip 10.72.1.6 and 
private 10.37.2.6 .  I have a postfix server on 10.37.2.19 that I am 
trying to load balance to.  in my initial test I only have one director 
and one real server.  I have set the postfix server's gateway as the 
public VIP.

I can connect to postfix by going directly to it, but not thru the lvs.  
When I connect to postfix thru the VIP this is what postfix reports:
Oct 16 22:13:37 tbcsrv919 postfix/smtpd[10409]: connect from 
unknown[10.37.2.6]
Oct 16 22:13:37 tbcsrv919 postfix/smtpd[10409]: lost connection after 
CONNECT from unknown[10.37.2.6]
Oct 16 22:13:37 tbcsrv919 postfix/smtpd[10409]: disconnect from 
unknown[10.37.2.6]


so my connection is going thru the lvs and hitting postfix, but for some 
reason its not going thru right.  I can do a tcpdump on the lvs and see 
my connection coming thru.

help is most appreciated and here is my lvs.conf file:
serial_no = 32
primary = 10.72.1.6
service = lvs
backup_active = 1
backup = 10.72.1.7
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 10.37.2.8 eth0:0
nat_nmask = 255.255.255.0
debug_level = NONE
monitor_links = 0
virtual testsmtp {
     active = 1
     address = 10.72.1.8 eth1:1
     vip_nmask = 255.255.255.0
     port = 25
     persistent = 5
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 0
     server tbcsrv919 {
         address = 10.37.2.19
         active = 1
         weight = 1
     }
}







<Prev in Thread] Current Thread [Next in Thread>
  • [lvs-users] LVS - NAT - SMTP help, Jason Ledford <=