Dear all, I have to change my haproxy.cfg file in order to enable two
FTP connections to the same server, with these requirements:

FTP server IP: 10.10.1.10

1st FTP service:
FTP Control: port 21
FTP Data: port 11000 to 11010

2nd FTP service:
FTP Control: port 2100
FTP Data: 11000 to 10010 (same range as the first service)

In the haproxy.cfg I tried this:

listen ftp-control-1
        bind 10.10.1.1:21
        mode tcp
        option tcplog
         server FTP 10.10.1.10:21 check 21

listen ftp-control-2
        bind 10.10.1.1:2100
        mode tcp
        option tcplog
         server FTP 10.10.1.10:21 check 2100

listen ftp-data-1-2   <--- The same config for FTP data because they
use the same port range
        bind 10.10.1.1:11000-11010
        mode tcp
        option tcplog
        server FTP 10.10.1.10 check

But it doesn't work.

Is my config correct or not?

Is it correct if I use the same FTP data port range for both services
on the same server?

Thanks and greetings!

Robert

Reply via email to