Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to manage 2 FTP servers behind pfSense using something like HAproxy?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 1 Posters 488 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mauro.tridici
      last edited by

      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

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        mauro.tridici @mauro.tridici
        last edited by

        Does anyone have an idea about my issue?
        Thank you,
        Mauro

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.