Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Avatar
mayprog #1
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Subject: Jep0065 SOCKS5
I have posted this comment and elsewhere(http://forum.ag-software.de/forum.php?req=thread&posti…), but i think this is the most appropriate thread to sent it:

In the Jep0065 (http://www.jabber.org/jeps/jep-0065.html) it says:

Example 18. Proxy Informs Initiator of Activation

<iq type='result'
    from='proxy.host3'
    to='initiator@host1/foo'
    id='activate'/>
   
The Proxy MUST then send SOCKS5 acknowledgement of the connection to the Target.

Example 19. StreamHost Acknowledges Connection to Target

STATUS = X'00'


So, I suppose the Target should send the StreamHostUsed to the Initiator just after he authenticates with the proxy server.
After that he Sends the CONNECT command (SOCKS5) and then it waits for the STATUS '00' REPLY from the proxy server.

This status will come AFTER the Initiator Activates the ByteStream with the proxy server,

Am I wright?
Avatar
Alex #2
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes you are right
Avatar
mayprog #3
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Alex,
i have asked your nameshake Alex in the Wildfire forums about this.
He told me that this is a bit of confusing and he asked about it but no reply had come yet from the Standards group.

Normally, according to him 2 STATUS '00' should come, the first right away from the CONENCT command and the second after the Initiator Activates the stream, but this is not a fact.

Also he told me that according to Wildifre server, he send the STATUS '00' REPLY from the CONNECT command right away without waiting for the activation of the Stream from the initiator. Wildfire will not sent a seconf '00' after the activation of the stream from the Initiator.

This might not be the case for the Jep 0065 (i cannot figure out what would be the case) but by using this all clients are working fine.
So, as we use Wildfire for our server, I am going to implement this that way.

He also told me that i should sent the StreamHostUsed command after i CONNECT with the Server and not after i am authorized to it (being the Target), althoughjt i don't think it would make any difference since my CONNECT command will not Halt when using Wildfire for proxy.

What is your opinion on these ?

Do you know how jabberd server or other well known servers handles this?

Thanks very much!
This post was edited on 2006-06-13, 01:17 by mayprog.
Avatar
Alex #4
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

can you post the link to the thread in the wildfire forums?
I am alway very active on the standards list and will send my comments also to the list.
AFAIK Wildfire is the only server which has a build in Socks5 proxy. All other servers don't have a SOCKS5 proxy. Another implementation is Proxy65 (http://jabberstudio.org/projects/proxy65/project/view.php). You can install Proxy65 on any server. Jabber.org runs this component on proxy.jabber.org.


Quote by mayprog:
He also told me that i should sent the StreamHostUsed command after i CONNECT with the Server and not after i am authorized to it (being the Target), althoughjt i don't think it would make any difference since my CONNECT command will not Halt when using Wildfire for proxy.
Yes you should send the streamhostused after you were able to connect to one of the given streamhosts.

Alex
Avatar
mayprog #5
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Thanks Alex,
The thread is http://www.jivesoftware.org/community/thread.j…?threadID…
Avatar
mayprog #6
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
Alex, i show the post (log) you send me right now.
After that i tried to download it to study... but it is no longer available!

It would be really helpfull if you could re-post it!

Thank you very much.
This post was edited on 2006-06-17, 03:21 by mayprog.
Avatar
Alex #7
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i moved this post because i was in the wrong thread. Its here now:
http://forum.ag-software.de/forum.php?req=thread&id=21…
Avatar
mayprog #8
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
OK Alex, it was my fault!
I managed to get it.

Thank you very much again!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: