Due to network environment restrictions, need to from the intranet (not directly connected to the outside network) to the external FTP upload, download files, only on the gateway server to set up the FTP reverse proxy (gateway server can connect the extranet and intranet, but not allow internal applications deployed on this machine).
Several scenarios were tried:
1, the use of Apache mod_proxy_ftp module, toss a bit, download can, upload no toss success, give up.
2,https://github.com/c960657/ftpproxy use of GitHub on the Open source project Ftpproxy, see the next introduction, should be able to, but its configuration file parameters too much, glanced at the official website given the configuration file
Https://github.com/c960657/ftpproxy/blob/master/ftpproxy.conf dense, suddenly not in the mood to continue
3, the use www
.ftpproxy.org
of ftp.proxy Open source projects, this is the simplest, use the following steps:
Ftpproxy-1.2.3.tgz.zip to prevent the official website hanging off, has been uploaded to the blog park (the garden is not allowed to upload. tgz suffix file, can only compress it again, into a. zip file, so after downloading, to extract two times)
A. after downloading, unzip to a directory, this article is:/users/jimmy/downloads/app/ftp.proxy/ftpproxy-1.2.3
B. compiling
CD ftpproxy-1.2.3
make
may give some warning, ignore (think of that classic joke: the programmer only cares about error, never care about warning) when finished, the SRC directory will generate the Ftp.proxy commandc.Start./src/ftp.proxy-d Native Idle port FTP server IP: PortFor example:./src/ftp.proxy-d 12306 12.34.56.78:21 This way, access to ftp://Gateway server ip:12306 is equivalent to access ftp://12.34.56.78:21 Note: If you want to reverse proxy multiple FTP simultaneously, Stagger the ports and start a few more ftp.proxy.
Setting up an FTP reverse proxy server