port forwarding
Hello All,
I am running squid reverse proxy for 5 different web servers.
I want to provide ftp access to clients so that they can update the web page content.
As all the host name resolve to the single address i find problem in port forward the ftp request to the correct backend web server.
How to make port forward the ftp request to the correct web server using iptables.
Regards
Sathi
Quoted 7 lines · Sathi
I am running squid reverse proxy for 5 different web servers.
I want to provide ftp access to clients so that they can update the web page content.
As all the host name resolve to the single address i find problem in port forward the ftp request to the correct backend web server.
If you have more than one IP you could set up your DNS like this:
say your domains are
customer1.yourdomain.example
customer2.yourdomain.example
...
customer5.yourdomain.example
which all resolve to the same IP. Now set up new entries
ftp1.yourdomain.example
ftp2.yourdomain.example
...
ftp5.yourdomain.example
which point to the corresponding server (not to the same ip). Now you only have to tell your customers which host to use an you are all set.
I think another solution would be to use a ftp proxy, where your clients get redirected based upon username.
User A logs in as '[email protected]', the ftp-proxy looks up the corresponding ftp-server from a table and redirects the ftp session to that ftp-server. '[email protected]' is redirected to the same server, where '[email protected]' is redirected to another server.
cya,
Nils
Signature · 3 lines
Nils Juergens | [email protected] Having problems sending big files over the net? Try out Efisto (http://efisto.rnbhq.org).