Hi,
I loadbalance my services POP and SMTP on the same loadbalancer with NAT
method.
The problem is that my pop realservers need to contact (they initiate
the connection) smtp realservers (for mail redirection).
But when i try : telnet "IP1" 25 (from a pop realserver) it doesn't work.
From any other computer (not loadbalanced itself), it works fine.
Except this problem, all is ok.
My temporary solution has been to specify directly my realservers as
relay on my pop realservers. I'll prefer they can ask the loadbalancer...
Any ideas ?
(I hope i'm clear, sorry for my english)
Thanks
François
loadbalancer real interfaces :
eth0 : IP1 (used as VIP for smtp too)
eth1 : 10.0.82.1 (default gateway for my realservers)
ip_forwarding activated
Here is my keepalived.conf :
global_defs {
notification_email {
me@xxxxxx
}
notification_email_from keepalived@xxxxxxxxx
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id SMTP_OUT
}
virtual_server IP1 25 {
delay_loop 30
lb_algo wrr
lb_kind NAT
protocol TCP
real_server 10.0.82.7 25 {
weight 1
SMTP_CHECK {
connect_timeout 10
retry 2
delay_before_retry 5
helo_name "lb.aic.fr"
}
}
real_server 10.0.82.9 25 {
weight 1
SMTP_CHECK {
connect_timeout 10
retry 2
delay_before_retry 5
helo_name "smtp.aic.fr"
}
}
}
virtual_server IP2 110 {
delay_loop 30
lb_algo wrr
lb_kind NAT
protocol TCP
real_server 10.0.82.101 110 {
weight 1
MISC_CHECK {
misc_path /etc/keepalived/testpop1
misc_timeout 15
retry 2
delay_before_retry 5
helo_name "pop.aic.fr"
}
}
real_server 10.0.82.102 110 {
weight 1
MISC_CHECK {
misc_path /etc/keepalived/testpop2
misc_timeout 15
retry 2
delay_before_retry 5
helo_name "pop.aic.fr"
}
}
}
|