How to manage 2 FTP servers behind pfSense using something like HAproxy?
-
Dear Users,
I successfully configured HAproxy in order to reach 2 webservers behind pfSense.
So, this is what happens:- If a generic user is looking for website01.domain.com, he is able to reach 192.168.0.1:80
- If a generic user is looking for website02.domain.com, he is able to reach 192.168.0.1:8080
In order to do that, I assigned website01.domain.com and website02.domain.com as alias of pfsense.domain.com DNS name. Everything work as expected.
Now, I would like to do the same thing with 2 FTP servers.
This should be the scenario:- If a generic user is looking for ftpsite01.domain.com, he is able to reach 192.168.0.1:21
- If a generic user is looking for ftpsite02.domain.com, he is able to reach 192.168.0.1:21000
(also in this case, I already assigned ftpsite01.domain.com and ftpsite02.domain.com as alias of pfsense.domain.com DNS name)
I know that I can fit my needs using simple NAT, I just tested it but I noticed that:
"ftp ftpsite01.domain.com" allows users to reach FTP server
BUT also
"ftp website01.domain.com" is working and it is not what I want.
For this reason, I would prefer to use something similar to HAproxy for FTP service. Is there a solution for this "problem"?
Sorry if my question is very trivial.
Thank you in advance,
Mauro -
Does anyone have an idea about my issue?
Thank you,
Mauro