Re: [LFTP] https_proxy

Vincent Lasselin <[email protected]> Wed, 04 Mar 2015 09:52:36 +0100
Newsgroups gmane.network.lftp.user
Message-ID <OFD626E570.9E196919-ONC1257DFE.002FE39C-C1257DFE.0030C321@lfdj.com>
Hi Alexander,

One example of an unsuccessfull connection with https.

lftp :~> debug 9
lftp :~> set
set cache:enable 0
set cmd:default-protocol/ftp.* ftp
set cmd:default-protocol/localhost file
set cmd:default-protocol/www.* http
set cmd:prompt "lftp \\S\\? \\u\\@\\h:\\w> "
set cmd:term-status/*rxvt* "\\e[11;0]\\e]2;\\T\\007\\e[11]"
set cmd:term-status/*screen* \\e_\\T\\e\\
set cmd:term-status/*xterm* "\\e[11;0]\\e]2;\\T\\007\\e[11]"
set color:dir-colors ""
set file:charset UTF-8
set ftp:auto-sync-mode "icrosoft FTP Service|MadGoat|MikroTik"
set ftp:proxy http://user:password@proxy:proxy_port
set ftp:proxy-auth-type joined-acct
set ftp:use-hftp yes
set hftp:proxy http://user:password@proxy:proxy_port
set hftp:use-authorization 1
set http:proxy http://user:password@proxy:proxy_port
set https:proxy http://user:password@proxy:proxy_port
set xfer:max-redirections 10
set xfer:verify-command /usr/share/lftp/verify-file
lftp :~> open https://dl.fedoraproject.org/
---- Resolving host address...
---- 1 address found: proxy_ip
---- Connecting to proxy proxy (proxy_ip) port proxy_port
---> CONNECT dl.fedoraproject.org:443 HTTP/1.1

<--- HTTP/1.1 407 Proxy Authentication Required
<--- Proxy-Authenticate: BASIC realm="Identification_FDJ"
<--- Cache-Control: no-cache
<--- Pragma: no-cache
<--- Content-Type: text/html; charset=utf-8
<--- Proxy-Connection: close
<--- Set-Cookie: BCSI-CS-152eee4c84edf11e=2; Path=/
<--- Connection: close
<--- Content-Length: 2840
<---
<--* HTML>
<--* Acces non autorisé
cd: Access failed: 407 Proxy Authentication Required (/)
---- Closing HTTP connection
lftp dl.fedoraproject.org://///////////////>

But if I try an http connection, it's working.

lftp :~> debug 0
lftp :~> open http://dl.fedoraproject.org/
cd: received redirection to `http://dl.fedoraproject.org/pub'
cd: received redirection to `http://dl.fedoraproject.org/pub/'
cd ok, cwd=/pub
lftp dl.fedoraproject.org:/pub>

I've done some tcpdump and analysed them with wireshark.
I noticed that the http CONNECT frame is sent to the proxy without my 
user/passwd...

Rgds.

-- 
Vincent Lasselin




De :
Alexander Lukyanov <[email protected]>
A:
Vincent Lasselin <[email protected]>, "Alexander V. Lukyanov" 
<[email protected]>, 
Cc :
[email protected]
Date:
03/03/2015 17:46
Objet :
Re: [lftp] [LFTP] https_proxy



Please turn on debug in lftp (command debug) and send me the output 

пн, 2 марта 2015, 12:56, Vincent Lasselin <[email protected]>:
Hi Alexander, 

I've provided user and password with the https:proxy. But it's not 
working. 
It's working very well with the http:proxy variable if I try to access 
some http website. 
But it's not working for https. 

-- 
Vincent Lasselin 


De : 
"Alexander V. Lukyanov" <[email protected]> 
A: 
Vincent Lasselin <[email protected]>, 
Cc : 
[email protected] 
Date: 
25/02/2015 09:06 
Objet : 
Re: [lftp] [LFTP] https_proxy




On Tue, Feb 10, 2015 at 02:51:04PM +0100, Vincent Lasselin wrote:
> I'm using lftp to access an https url. I'm using an https proxy.
> I've set https_proxy variable and it's not working...
> With wireshark, I've constated that the CONNECT frame is send without 
> credentials to my proxy :
> 
> cd: Access failed: 407 Proxy Authentication Required (...)

You have to provide user and password for the proxy. You can do it in the
proxy URL:

                set https:proxy http://user:[email protected]

-- 
  Alexander.


Si vous n’êtes pas destinataires de ce message, merci d’avertir 
l’expéditeur de l’erreur de distribution et de le détruire immédiatement. 
Ce message contient des informations confidentielles ou appartenant à la 
Française des jeux. Il est établi à l’intention exclusive de ses 
destinataires. Toute divulgation, utilisation, diffusion ou reproduction 
(totale ou partielle) de ce message ou des informations qu’il contient, 
doit être préalablement autorisée. Tout message électronique est 
susceptible d’altération et son intégrité ne peut être assurée. La 
Française des Jeux décline toute responsabilité au titre de ce message 
s’il a été modifié ou falsifié.
_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Si vous n’êtes pas destinataires de ce message, merci d’avertir l’expéditeur de l’erreur de distribution et de le détruire immédiatement. Ce message contient des informations confidentielles ou appartenant à la Française des jeux. Il est établi à l’intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message ou des informations qu’il contient, doit être préalablement autorisée. Tout message électronique est susceptible d’altération et son intégrité ne peut être assurée. La Française des Jeux décline toute responsabilité au titre de ce message s’il a été modifié ou falsifié.

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp