Article delegate-en/1112 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:<_A1110@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Question about SSLTUNNEL
19 Apr 2001 07:13:23 GMT feedback@delegate.org (Yutaka Sato)


On 04/19/01(01:00) you Mike Potopaev <pkycabdyi-dyd2yvduovxr.ml@ml.delegate.org> wrote
in <_A1110@delegate-en.ML_>
 |I use Delegate 7.2.0 in such configuration:
 |"delegated -P1080 SERVER=socks SSLTUNNEL=upstream_proxy_ip:port"
 |
 |How i can do the same, but with authorisation to "upstream_proxy" server
 |?
 |Command "SSLTUNNEL=User:Pass@upstream_proxy_ip:port" do not work !!!

If you see a line like this in your LOGFILE:

04/19 16:09:55.40 [4019] 1+1: SSL-TUNNEL>> HTTP/1.0 407 Proxy Authentication Required^M

the upstream proxy server is asking authorization in Proxy-Authorization
header.  From the viewpoint of consistency, it should be able to be
specified like:

  AUTH="pauthgen:basic:User:Pass"

The enclosed patch for DeleGate/7.2.1 will enable the authorization.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan


diff -c ../../delegate7.2.1/src/http.c ./http.c
*** ../../delegate7.2.1/src/http.c	Fri Mar 23 04:56:30 2001
--- ./http.c	Thu Apr 19 15:51:52 2001
***************
*** 3461,3466 ****
--- 3461,3467 ----
  		sv1log("## GEN Authorization: %s [%s]\n",genauth,buf2);
  		gfp = Sprintf(gfp,"Authorization: %s\r\n",genauth);
  	}
+ 	if( toProxy /* or ConnType != 'h' */ )
  	if( makeAuthorization(Conn,genauth,1) ){
  		HTTP_decompAuth(genauth,atype,sizeof(atype),buf2,sizeof(buf2));
  		sv1log("## GEN Proxy-Authorization: %s [%s]\n",genauth,buf2);
diff -c ../../delegate7.2.1/src/master.c ./master.c
*** ../../delegate7.2.1/src/master.c	Fri Mar 23 04:25:00 2001
--- ./master.c	Thu Apr 19 16:05:01 2001
***************
*** 1609,1614 ****
--- 1609,1620 ----
  		return -1;
  
  	sprintf(msg,"CONNECT %s:%d HTTP/1.0\r\n\r\n",host,port);
+ 	{	char genauth[1024],auth[1024];
+ 		if( makeAuthorization(Conn,genauth,1) ){
+ 			sprintf(auth,"Proxy-Authorization: %s\r\n",genauth);
+ 			RFC822_addHeaderField(msg,auth);
+ 		}
+ 	}
  	sv1log("SSL-TUNNEL<< %s:%d\n",host,port);
  	wcc = write(sock,msg,strlen(msg));
  	rcc = RecvLine(sock,resp,sizeof(resp));

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