Skip to contentSkip to conversation

FTP server behind a load balancer

DISCUSSION Mohamed Eldesoky 1 participant 1 message Nov 7, 2004

lore
Share & tools
lore
#0 lore raw

Dear all,
I have two FTP servers behind a load balancer.
Furthermore, those FTP servers, listen on both ports 21, 45 (for some reasons) I am not using NAT, they have public IPs.
When the client connects from the outside world, to port 21, passive FTP works fine.
When the client connects to port 45, it doesn't work !!
I did modprobe ipt_conntrack_ftp ports=21,45
But during debugging I noticed something, when working with port 21, the response of the passive FTP, it returns with the loadbalancer IP (The IP the client has talked to in the first place), but when talking to port 45, it returns with the server IP address (The real IP of the server, not the load balancer), and this causes IPTables to think it is a new connection, to a random IP.

Should ipt_conntrack_ftp track only the ports, or also the ports and IPs returned in the response of the FTP server ??
Any clue ?

Signature · 3 lines
Mohamed Eldesoky
www.eldesoky.net
RHCE