Resolvido com um par de 3proxy
.
backend 3proxy.cfg na minha LAN:
auth iponly
# only allow connect to control or ephemeral ports on FTP server
allow * * ftp.company.org 21,30000-65535
socks -u
túnel:
[email protected] -R 0.0.0.0:1080:localhost:1080
frontend 3proxy.cfg no cliente:
auth iponly
# allow host names that are resolvable only remotely
fakeresolve
allow *
# chain FTP proxy to parent Socks5 proxy with remote resolve
parent 1000 socks5+ 127.0.0.1 1080
ftppr -p2121