Hi, Le samedi 28 mai 2011 08:05:59, Jirapong Kijkiat a écrit : > Dear. [email protected], [email protected] > > > How i can config haproxy for load balance my ftp server. now my > haproxy.cnf
Well, FTP is not the simplest protocol to load balance due to the ftp-data port. > listen MyFTP 10.129.37.18:21 > mode tcp > option tcplog > balance roundrobin > server my-ftp1 10.129.37.107:21 weight 10 minconn 30 maxconn 1000 > check server my-ftp2 10.129.37.108:21 weight 10 minconn 30 maxconn 1000 > check server my-ftp3 10.129.37.109:21 weight 10 minconn 30 maxconn 1000 > check > > > Now i can ftp to 10.129.37.18. but cannot list my folder. > > C:\>ftp 10.129.37.18 > Connected to 10.129.37.18. > 220 ::ffff:10.129.37.107 FTP server ready > User (10.129.37.18:(none)): jirapong_kij > 331 Password required for jirapong_kij > Password: > 230 User jirapong_kij logged in > ftp> ls > 500 Illegal PORT command > Aborting any active data connections... This is probably due to that data port. If you switch to passive mode, this should work but this is maybe not the solution you want. You can have a look at this thread, maybe it can help you configure active FTP load balancing. http://www.formilux.org/archives/haproxy/0805/0976.html Hope this helps. -- Cyril Bonté

