I have two servers behind a Watchguard, one is a linux server, one is a windows server. The watch guard forwards http and ftp requests (ports 80, and 21) to a proxy server.
I have configured apache on the proxy server so I can proxy the http requests to either server based on domain names as below
ServerName mysite.com.au
ProxyPreserveHost On
ProxyPass "/" "http://10.0.2.21/"
ProxyPassReverse "/" "http://10.0.2.21/"
ServerName mysite.net.au
ProxyPreserveHost On
ProxyPass "/" "http://10.0.2.31/"
ProxyPassReverse "/" "http://10.0.2.31/"
So .com.au goes to 10.0.2.21, and .net.au goes to 10.0.2.31. These are both internal servers.
I want to do the same type of forwarding for ftp (port 21).
So if I try to ftp to a site hosted on the windows server, the proxy will know it is hosted on the windows server (10.0.2.31) and forward the ftp requests to the correct server.
What i want to do is employ a proxy that listens on port 21 and forwards the traffic to the appropriate ftp server based on the dns name requested. I have the proxy and it is already working for http but I need to know how to do the same for ftp.
Comments
Post a Comment