aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Socks 4a proxy  (Read 5255 times)

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Socks 4a proxy
« on: May 01, 2006, 12:00:16 PM »

Some plans for supporting Socks 4a proxy?
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Socks 4a proxy
« Reply #1 on: May 02, 2006, 05:20:32 AM »

Tiansen,

If you can try CVS code, I have just added the necessary support. I don't have time do test it now. The code should be in 2006-05-03 CVS snapshot.

Please, report your experience.

Cheers!
Logged

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Socks 4a proxy
« Reply #2 on: May 02, 2006, 02:20:09 PM »

I will!

Thanks!
Logged

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Socks 4a proxy
« Reply #3 on: May 03, 2006, 10:40:28 AM »

It seems it works for me! :baby:

But I don't have much knowledge of that stuff, so I'm asking more users to test it.
« Last Edit: May 03, 2006, 10:42:33 AM by Tiansen »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Socks 4a proxy
« Reply #4 on: May 03, 2006, 10:52:45 AM »

Isn't phoenix great?
Logged

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Socks 4a proxy
« Reply #5 on: May 03, 2006, 02:35:34 PM »

When using Socks 4a Kad doesn't work. Is this normal?

In eMule Socks 4a proxy support is broken. But when using e.g. Socks 4, Kad works.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Socks 4a proxy
« Reply #6 on: May 03, 2006, 03:22:03 PM »

Tiansen,

The following quote is from the SOCKS5 protocol documentation, RFC-1928:

Quote
  This new protocol extends the SOCKS Version 4 model to include UDP,
   and extends the framework to include provisions for generalized
   strong authentication schemes, and extends the addressing scheme to
   encompass domain-name and V6 IP addresses.

So, SOCKS4 and SOCKS4a do not have support for UDP as far as I know, and if I recall correctly, Kademlia is UDP based, so I think it will not be possible for it to work under SOCKS4 and SOCKS4a. Could you please check your information about Kad working with SOCKS4? Notice that if your network is accessible from the outer world, a test with a proxy is not valid, you need to test it with a really isolated machine behind a NAT.

On the other hand, Kad should work very well under a SOCKS5 proxy.

Cheers!
Logged

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Socks 4a proxy
« Reply #7 on: May 03, 2006, 07:51:28 PM »

Well, using Socks 4 or 4a proxy with emule I get message Kad:Connected and Kad arrow turns yellow. I don't know how this is possible then. It seems also that it works better (much more sources, faster download...) with emule than amule. Cause is unknown to me.

Using Socks 4a proxy in aMule: it says Kad:off.
Logged

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Socks 4a proxy
« Reply #8 on: May 03, 2006, 08:02:13 PM »

And yes, I am behind a NAT.  ;)
Logged

Tiansen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Socks 4a proxy
« Reply #9 on: May 04, 2006, 03:12:23 PM »

Emule docs says that it is required to disable UDP port when using proxy. It seems that if UDP port is enabled, emule bypasses proxy setting for Kad. Obviously aMule does that automatically.  :)
« Last Edit: May 04, 2006, 03:56:43 PM by Tiansen »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Socks 4a proxy
« Reply #10 on: May 04, 2006, 07:36:32 PM »

Well, if what you mean is that eMule will say Kad is ok, but in fact is not working, then I agree :D

aMule only says Kad is ok, when it really is :) If the UDP sockets are not working, aMule will try to use them, but they will not respond.

Cheers!
Logged