I am wondering how to get FTP working as a Tor hidden server. I thought I could use it with just one port by forwarding 21 and disabling pasv in vsftpd.conf with pasv_enable=NO but this doesn't work.
I want users to connect to it with socat over Tor, so a typical session is like this.
$ socat TCP4-LISTEN:2021,fork SOCKS4A:localhost:obfuscated.onion:21,socksport=9050 &
$ ftp localhost 2021
ftp: connect to address ::1: Connection refused
Connected to localhost.
220 Welcome to OBFUSCATED FTP
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
It doesn't work though...
500 Illegal PORT command.
ftp: bind: Address already in use
So I'm wondering what I can do to get FTP running, or whether I just have to ditch FTP.