You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Thomas Wolf (Jira)" <ji...@apache.org> on 2020/06/01 19:54:00 UTC

[jira] [Commented] (SSHD-1008) Proxy & socks5 use in client server communication

    [ https://issues.apache.org/jira/browse/SSHD-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17121296#comment-17121296 ] 

Thomas Wolf commented on SSHD-1008:
-----------------------------------

[~ssmali1505]: Lyor's answer is for making the server support SOCKS5. If you want to have the _client_ connect through a SOCKS5 or HTTP CONNECT proxy, a bit more work is needed. It's a bit complicated because the framework starts reading messages only once the ClientSessionImpl creator has returned, but that creator already initiates the proxy protocol, and also sends the SSH identification and possibly the KEX init.

You might want to take a look at [how we did that in JGit|https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/master/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd]: basically we install a ClientProxyConnector that tells the session to divert all messages received to the proxy connector until the proxy protocol is finished. We buffer the initial identification and KEX init messages, and send them only once the proxy protocol has established the proxy connection. 

> Proxy & socks5 use in client server communication
> -------------------------------------------------
>
>                 Key: SSHD-1008
>                 URL: https://issues.apache.org/jira/browse/SSHD-1008
>             Project: MINA SSHD
>          Issue Type: Question
>            Reporter: Sandeep
>            Priority: Major
>
> We have client and server both written in SSHD mina and now customer want to add proxy, socks5 feature in current client & server communication. So all traffic should go via proxy.
>  
> Also point to be consider as proxy may have authentication. 
> Please let me know can we give support for such scenarios. If yes do we have some reference class or test scrips?
>  
>  In sort am finding replacement for [https://www.javatips.net/api/j2ssh-maverick-master/j2ssh-maverick/src/main/java/com/sshtools/net/SocksProxyTransport.java#]
> and 
> [https://www.javatips.net/api/j2ssh-maverick-master/j2ssh-maverick/src/main/java/com/sshtools/net/SocksProxyTransport.java#]
> for this two mavericks class.
> [~lgoldstein] can you please help me to identify right classes or any pointers? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org