D
D
Dmitry Chilikin2017-12-20 11:32:33
Java
Dmitry Chilikin, 2017-12-20 11:32:33

How to make an FTP proxy?

Good afternoon!
I set up an NGINX-based http proxy to proxy sites to different machines within the network with one external IP address on port 80. As Google suggested, I believe that it will not work to proxy the FTP protocol. The question is: who really tried to install and who actually configured a proxy for the FTP protocol (active and passive modes)? Please provide a link to a working setup. The conditions are as follows: different ftp domains - different machines within the network. Or tell me how to do it differently ...
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mayton2019, 2019-10-11
@mayton2019

This task is not solved within the framework of CrudRepository.
Architectural. For large systems, if someone wants to search for arbitrary text (fuzzy text search) by the input expression, like Google search, Apache Lucene or ELK stack is specially connected. The required tablet is replicated into it, and then all text searches are performed on this replica.
Everything that you do now within the framework of classical relational algebra will work slowly and poorly, because relational algebra was not created at all for such fuzzy searches.

P
pfg21, 2017-12-20
@pfg21

set up iptables port forwarding inside the network.
those. the clientele will connect not by domains, but by specific ports , it is
natural to use only the passive mode

V
Vladimir Dubrovin, 2017-12-20
@z3apa3a

FTP does not send the Host: header or something similar, so it is not possible to have several virtual FTP servers on the same IP/port, you have to spread them by IP or ports or pass the host name in the username.
Otherwise, there are no problems with FTP proxying, for example, in 3proxy
allow * * internal_host1 20-21,1024-65535
ftppr -hinternal_host1:21 -iexternal_ip -p2101
flush
allow * * internal_host2 20-21,1024-65535
ftppr -hinternal_host2:21 -iexternal_ip -p2102
flush
allow * * internal_host3 20-21,1024-65535
ftppr -hinternal_host3:21 -iexternal_ip -p2103
flush
...
proxies FTP from port external_ip:2021 to internal_host1, 2022 to internal_host2, 2023 to internal_host3
or you can also proxy by username there:
allow * * internal_host1,internal_host2,internal_host3 20-21,1024-65535
ftppr -iexternal_ip -p21
will proxy a user named [email protected]_host1 to internal_host1, [email protected]_host2 to internal_host2, etc.

M
Moris Haos, 2017-12-20
@morihaos

Hi,
Yes there are many... www.tlswrap.com , www.ftpproxy.org , www.hollo.org/frox , for example. The settings there are simple, like FTP itself. In an Internet docks, mana, configs for a minute are in search engines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question