View Single Post
  #1   (View Single Post)  
Old 16th July 2013
Fekete Fekete is offline
New User
 
Join Date: Apr 2013
Posts: 4
Default FTP as Tor hidden service.

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.

Code:
$ socat TCP4-LISTEN:2021,fork SOCKS4A:localhost:obfuscated.onion:21,socksport=9050 &
$ ftp localhost 2021
ftp: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
220 Welcome to OBFUSCATED FTP
Name (localhost:obfuse): 
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

It doesn't work though...
ftp> dir
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.
Reply With Quote