FTP plugin with socks5 proxy

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
viorelp
New Member
New Member
Posts: 1
Joined: 2020-11-02, 13:15 UTC

FTP plugin with socks5 proxy

Post by *viorelp »

Hello

I have a problem to access my FTP outside of my home network using plain authentication, passive mode, with socks5 proxy.
In my desktop version everything works fine. (I can post it here the log if necessary)
If I use socksdroid app, the app create a VPN for sock5 proxy and then I can use FTP from Total Commander with direct connection.

See below the log created by FTP plugin using socks5 proxy:

Thank you
Gabriel

2020-10-30 10:43:48.159 HOST:FTP:initiate connection to plugin
2020-10-30 10:43:48.167 HOST:FTP:bindService succeeded
2020-10-30 10:43:48.175 HOST:FTP:Service connected!
2020-10-30 10:43:48.175 HOST:FTP:WaitUntilConnected:Background
2020-10-30 10:43:48.179 HOST:FTP:get dir: /
2020-10-30 10:43:49.588 HOST:FTP:checkConnectionAlive: 1
2020-10-30 10:43:49.696 HOST:FTP:get dir: /DS218 proxy/
2020-10-30 10:43:49.697 FTP:Get directory.../DS218 proxy/
2020-10-30 10:43:49.717 FTP:Resolving server address...
2020-10-30 10:43:49.719 FTP:Connecting...
2020-10-30 10:43:49.821 FTP:Connect, waiting for login...
2020-10-30 10:43:49.821 FTP:SOCKS5 connect...
2020-10-30 10:43:49.968 FTP:SOCKS5 connect...OK
2020-10-30 10:43:49.969 FTP:220 DS218 FTP server ready.
2020-10-30 10:43:49.969 FTP:Logging in...
2020-10-30 10:43:49.970 FTP:USER myuser
2020-10-30 10:43:50.026 FTP:331 Password required for myuser.
2020-10-30 10:43:50.027 FTP:PASS *****
2020-10-30 10:43:50.345 FTP:230 User myuser logged in.
2020-10-30 10:43:50.345 FTP:OPTS UTF8 ON
2020-10-30 10:43:50.407 FTP:200 OK, UTF-8 enabled
2020-10-30 10:43:50.408 FTP:SYST
2020-10-30 10:43:50.462 FTP:215 UNIX Type: L8
2020-10-30 10:43:50.463 FTP:Connect OK!
2020-10-30 10:43:50.463 FTP:Get directory...
2020-10-30 10:43:50.463 FTP:CWD /
2020-10-30 10:43:50.513 FTP:250 CWD command successful.
2020-10-30 10:43:50.514 FTP:TYPE A
2020-10-30 10:43:50.568 FTP:200 Type set to A.
2020-10-30 10:43:50.569 FTP:PASV
2020-10-30 10:43:50.622 FTP:227 Entering Passive Mode (192,168,1,100,218,200)
2020-10-30 10:43:50.623 FTP:PASV=local -> redirect to mydomain.com/188.27.98.139
2020-10-30 10:43:50.825 FTP:Socks5 error: Connection refused
2020-10-30 10:43:50.826 FTP:QUIT
2020-10-30 10:43:50.877 FTP:221 Goodbye. You uploaded 0 bytes and downloaded 0 bytes.
2020-10-30 10:43:50.878 FTP:OFFLINE!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP plugin with socks5 proxy

Post by *ghisler(Author) »

The server reports a local IP address in response to the PASV command: 192.168.1.100. My guess is that only the command connection is forwarded, not the data connections.
Author of Total Commander
https://www.ghisler.com
Post Reply