Article delegate-en/2888 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2885@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: socks eval problems
01 Apr 2005 21:17:36 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


In message <_A2885@delegate-en.ML_> on 04/01/05(23:02:15)
you "Stephen Davies" <ph4fqbdyi-abjexvfinetr.ml@ml.delegate.org> wrote:
 |Thanks for the swift response! I tried with IE6, and the connection worked 
 |ok:
 |
 |04/01 09:50:55.03 [12520] 5+1: execGeneralist->execSpecialist
 |04/01 09:50:55.03 [12520] 5+1: PATH: 
 |socks://-:1080!socks_server:1080!workstation:1842!anonymous@workstation;1112345455
 |04/01 09:50:55.03 [12520] 5+1: #### newRoute[REACHABLE] 0/16
 |04/01 09:50:55.03 [12520] 5+1: [0] REACHABLE=://:0-_-{}:{}
 |04/01 09:50:55.03 [12520] 5+1: PERMITTED: socks://-
 |04/01 09:50:55.03 [12520] 5+1: *** gethostbyaddr(10.129.189.1): 
 |dest_address / 0.00 secs. has_alias:0
 |04/01 09:50:55.03 [12520] 5+1: HOSTS[4]=dest_address/10.129.189.1

and you saw "[SocksV4-serv] 1 ver[4] com[1/CONNECT] ..." after the line?

 |However with the patch applied, using a socks client, I couldn't see any 
 |additional info in the output. 

Your client seems to be using Socks version 4.  It might be better to
use Socks version 5 if the client support it.
Anyway, the enclosed patch will add some error information for SocksV4.

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

*** dist/delegate8.11.1/src/socks4.c	Fri Jan 21 18:50:15 2005
--- src/socks4.c	Sat Apr  2 06:14:16 2005
***************
*** 159,165 ****
--- 159,168 ----
  	setbuf(fc,NULL);
  	pc = fread(ibuf,8,1,fc);
  	if( pc <= 0 )
+ 	{
+ 		syslog_ERROR("#### ERROR: can't read packet %d %d\n",pc,errno);
  		return;
+ 	}
  	ver = ibuf[0];
  	com = ibuf[1];
  	dstport = (ibuf[2] << 8) | ibuf[3];
***************
*** 171,177 ****
--- 174,183 ----
  	}
  
  	if( fgetstr(AVStr(user),sizeof(user),fc) < 0 )
+ 	{
+ sv1log("[SocksV4-serv] empty user part err=%d\n",errno);
  		return;
+ 	}
  
  	if( ibuf[4] == 0 && ibuf[5] == 0 && ibuf[6] == 0 && ibuf[7] != 0 ){
  		if( fgetstr(AVStr(host),sizeof(host),fc) < 0 || host[0] == 0 ){

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V