Re: port forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23.07.03, Sathi <sathiyan@xxxxxxx> wrote:

> 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 'usera@xxxxxxxxxxxxxxxxxxxxxxxxxxxx', the ftp-proxy looks up
the corresponding ftp-server from a table and redirects the ftp session to
that ftp-server. 'userb@xxxxxxxxxxxxxxxxxxxxxxxxxxxx' is redirected to the
same server, where 'userc@xxxxxxxxxxxxxxxxxxxxxxxxxxxx' is redirected to
another server.

cya,

Nils


-- 
Nils Juergens  | ju@xxxxxxxxxxxxxxxxxx
Having problems sending big files over the net?
Try out Efisto (http://efisto.rnbhq.org).



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux