COZPROY Error: Invalid SOCKS5 command: 2 - only CONNECT(1) .

General discussion of the Co:Z Toolkit
Post Reply
Ulrich Schmidt
Posts: 37
Joined: Fri Jan 09, 2009 1:25 pm
Location: Germany

COZPROY Error: Invalid SOCKS5 command: 2 - only CONNECT(1) .

Post by Ulrich Schmidt »

Hello,

tried to do a ftp over Co:Z-Socks and got message:
Invalid SOCKS5 command: 2 - only CONNECT(1) supported

I'getting a control connection to the ftp-server; but fail to get a data connection.

Is there anythin I can do about this?

brgds,
Ulrich
Ulrich Schmidt
Posts: 37
Joined: Fri Jan 09, 2009 1:25 pm
Location: Germany

Re: COZPROY Error: Invalid SOCKS5 command: 2 - only CONNECT(

Post by Ulrich Schmidt »

Hello,

is this question too stupid, too basic? I won't press you to a solution - but I need to know whether I have to look for another solution for this. So I would appreciate any kind of information about this item.

Thank you,
Ulrich
nickponi
Posts: 1
Joined: Fri Jul 17, 2020 1:32 am

Re: COZPROY Error: Invalid SOCKS5 command: 2 - only CONNECT(1) .

Post by nickponi »

I am also getting the same error. Please help somebody?

2020-07-20 19:08:24,068 WARN ProxyConnectionÝ/127.0.0.1:51341¨ - Uncaught exception
com.dovetail.ftpsshproxy.SOCKS5ProtocolException: Invalid SOCKS5 command: 2 - only CONNECT(1) supported
at com.dovetail.ftpsshproxy.SOCKS5Request.doReceive(SOCKS5Request.java:58)
at com.dovetail.ftpsshproxy.SOCKS5Request.receive(SOCKS5Request.java:43)
at com.dovetail.ftpsshproxy.ProxyConnection.doProxyExchange(ProxyConnection.java:114)
at com.dovetail.ftpsshproxy.ProxyConnection.doRun(ProxyConnection.java:90)
at com.dovetail.ftpsshproxy.ProxyConnection.run(ProxyConnection.java:72)
at java.lang.Thread.run(Thread.java:820)

Regards,
Nick
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: COZPROY Error: Invalid SOCKS5 command: 2 - only CONNECT(1) .

Post by dovetail »

This error is because the z/OS FTP client seems to be sending a SOCKS5 "BIND" command (2).
https://tools.ietf.org/html/rfc1928

This should not happen if you have specified "FWFRIENDLY TRUE" in your FTP configuration.

See: https://dovetail.com/docs/ftpsshproxy/install.html
Post Reply