Hi :) I'm trying o update an OpenSUSE 10.2 but I'm behind a proxy which requires authentication. There's no way I can get YOU to sync. I have tried defining http_proxy et al variables with and without user+password (/etc/sysconfig/) to no avail :( I know the http_proxy variables are well defined because I can browse the Internet, ftp, ping, dig, ... but YOU just won't work. I found this line: string command = "curl --verbose --proxy %1 %2 --connect-timeout %3 --url %4"; in the /usr/share/YaST2/modules/Proxy.ycp file, but I'm not sure whether this is where I'd have to add one of the --proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm options. Is this where I'd have to add one of these options? More info, when I try to register my OpenSUSE I get a 56 exit code from curl (Failure in receiving network data). When I try to add a new repo I get an error stating that the source can't be reached but if I copy'n'paste the same URL in a browser ... it shows up. TIA Rafa -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/26/07, Rafa Grimán <rafagriman@gmail.com> wrote:
I'm trying o update an OpenSUSE 10.2 but I'm behind a proxy which requires authentication. There's no way I can get YOU to sync. I have tried defining http_proxy et al variables with and without user+password (/etc/sysconfig/) to no avail :( I know the http_proxy variables are well defined because I can browse the Internet, ftp, ping, dig, ... but YOU just won't work.
I found this line:
string command = "curl --verbose --proxy %1 %2 --connect-timeout %3 --url %4";
in the /usr/share/YaST2/modules/Proxy.ycp file, but I'm not sure whether this is where I'd have to add one of the
--proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm
options. Is this where I'd have to add one of these options?
More info, when I try to register my OpenSUSE I get a 56 exit code from curl (Failure in receiving network data). When I try to add a new repo I get an error stating that the source can't be reached but if I copy'n'paste the same URL in a browser ... it shows up.
That's strange, I've had this problem with older versions of SuSE, but 10.2 worked fine. I defined proxy in YaST (network services-> proxy) and it created /root/.curlrc with the line proxy-user = "user:passwrod". That's all is needed. -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi :) On 3/27/07, Mark Goldstein <goldstein.mark@gmail.com> wrote:
On 3/26/07, Rafa Grimán <rafagriman@gmail.com> wrote:
I'm trying o update an OpenSUSE 10.2 but I'm behind a proxy which requires authentication. There's no way I can get YOU to sync. I have tried defining http_proxy et al variables with and without user+password (/etc/sysconfig/) to no avail :( I know the http_proxy variables are well defined because I can browse the Internet, ftp, ping, dig, ... but YOU just won't work.
I found this line:
string command = "curl --verbose --proxy %1 %2 --connect-timeout %3 --url %4";
in the /usr/share/YaST2/modules/Proxy.ycp file, but I'm not sure whether this is where I'd have to add one of the
--proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm
options. Is this where I'd have to add one of these options?
More info, when I try to register my OpenSUSE I get a 56 exit code from curl (Failure in receiving network data). When I try to add a new repo I get an error stating that the source can't be reached but if I copy'n'paste the same URL in a browser ... it shows up.
That's strange, I've had this problem with older versions of SuSE, but 10.2 worked fine. I defined proxy in YaST (network services-> proxy) and it created /root/.curlrc with the line proxy-user = "user:passwrod". That's all is needed.
Thanks for the tip but ... When I defined the Proxy settings via YaST (as you describe) I (root) didn't get the .curlrc file created so I created it manually. Logged out ... logged in ... rebooted ... The only thing left to do ins reinstall ;) But I still get the error I get when I start the Online Update Configuration and when I try to add a new installation source: Execute curl command failed with '56': curl: (56) Received HTTP code 407 from proxy after CONNECT My proxy settings are as follows: http_proxy=http://user:password@proxy.dom.ain:8080/ ftp_proxy=http://user:password@proxy.dom.ain:8080/ gopher_proxy=http://user:password@proxy.dom.ain:8080/ https_proxy=http://user:password@proxy.dom.ain:8080/ no_proxy=10*, localhost, 127.0.0.1 Would I have to remove the "user:password" part from these variables if I use the .curlrc file? YaST put them there so I guess that's OK and they won't interfere. Would I need to add to the .curlrc file a: --proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm entry? I must say that my OpenSUSE 10.2 has not be updated in anyway since I have no connection. It's plain ol' DVD installation. TIA Rafa -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/27/07, Rafa Griman <rafagriman@gmail.com> wrote:
When I defined the Proxy settings via YaST (as you describe) I (root) didn't get the .curlrc file created so I created it manually. Logged out ... logged in ... rebooted ... The only thing left to do ins reinstall ;) But I still get the error I get when I start the Online Update Configuration and when I try to add a new installation source:
Execute curl command failed with '56': curl: (56) Received HTTP code 407 from proxy after CONNECT
My proxy settings are as follows:
http_proxy=http://user:password@proxy.dom.ain:8080/ ftp_proxy=http://user:password@proxy.dom.ain:8080/ gopher_proxy=http://user:password@proxy.dom.ain:8080/ https_proxy=http://user:password@proxy.dom.ain:8080/ no_proxy=10*, localhost, 127.0.0.1
Would I have to remove the "user:password" part from these variables if I use the .curlrc file? YaST put them there so I guess that's OK and they won't interfere.
Would I need to add to the .curlrc file a:
--proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm
entry?
On my laptop I have: http_proxy=http://proxy.dom.ain:port/ ftp_proxy=http://proxy.dom.ain:port/ gopher_proxy=http://proxy.dom.ain:port/ https_proxy=http://proxy.dom.ain:port/ no_proxy=localhost, 127.0.0.1, <local domain> No user:password part. When defining proxy in Yast, I added username and proxy password in Proxy Authentication box and tried "Test Proxy Settings". Does it work on your machine? Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/27/07, Mark Goldstein <goldstein.mark@gmail.com> wrote:
On 3/27/07, Rafa Griman <rafagriman@gmail.com> wrote:
When I defined the Proxy settings via YaST (as you describe) I (root) didn't get the .curlrc file created so I created it manually. Logged out ... logged in ... rebooted ... The only thing left to do ins reinstall ;) But I still get the error I get when I start the Online Update Configuration and when I try to add a new installation source:
Execute curl command failed with '56': curl: (56) Received HTTP code 407 from proxy after CONNECT
My proxy settings are as follows:
http_proxy=http://user:password@proxy.dom.ain:8080/ ftp_proxy=http://user:password@proxy.dom.ain:8080/ gopher_proxy=http://user:password@proxy.dom.ain:8080/ https_proxy=http://user:password@proxy.dom.ain:8080/ no_proxy=10*, localhost, 127.0.0.1
Would I have to remove the "user:password" part from these variables if I use the .curlrc file? YaST put them there so I guess that's OK and they won't interfere.
Would I need to add to the .curlrc file a:
--proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm
entry?
On my laptop I have: http_proxy=http://proxy.dom.ain:port/ ftp_proxy=http://proxy.dom.ain:port/ gopher_proxy=http://proxy.dom.ain:port/ https_proxy=http://proxy.dom.ain:port/ no_proxy=localhost, 127.0.0.1, <local domain>
No user:password part.
When defining proxy in Yast, I added username and proxy password in Proxy Authentication box and tried "Test Proxy Settings". Does it work on your machine?
Thanks for your help Mark but ... Nope, it doesn't work :( And I've checked my proxy variables and right now they're just like yours. I've managed to download a file with curl with the following options: curl --proxy-ntlm --proxy-user user:password --url http://curl.haxx.se/programs/curlmirror.txt --proxy http://proxy.dom.ain:8080/ -O And managed to get the perl script (curlmirror.pl) to work with the following command line: curlmirror.pl -a '--proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/' http://download.videolan.org/pub/vlc/SuSE/10.2/ -c -o ./ -s 1000000 -t ~/tmp/ The only issue is I can't get the RPM files to get named <whatever>.rpm, they're all renamed to <whatever>.rpm.html :( There's no way to get wget or rsync out through the proxy, the only one is curl. That's why I'd like to modify the YOU line(s) where curl is used and add these options: --proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/ These are the error messages I get with wget and rsync: :~/mirror_suse> rsync -a -v --progress --delete http://download.videolan.org/pub/vlc/SuSE/10.2/ videolan/ ssh: http: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(459) [receiver=2.6.8] :~/mirror_suse> wget --proxy-user=user --proxy-password=password http://download.videolan.org/pub/vlc/SuSE/10.2/i586/a52dec-0.7.4-2.0.i586.rp... --10:42:16-- http://download.videolan.org/pub/vlc/SuSE/10.2/i586/a52dec-0.7.4-2.0.i586.rp... => `a52dec-0.7.4-2.0.i586.rpm' Resolving proxy.dom.ain... 10.0.144.6 Connecting to proxy.dom.ain|10.0.144.6|:8080... connected. Proxy request sent, awaiting response... 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ) 10:42:16 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ). :~/mirror_suse> YaST finally managed to create the .curlrc file (after rebooting) but it still doesn't work. Right now .curlrc is as follows: # Changed by YaST2 module proxy 03/27/2007 proxy-user = "user:password" proxy = http://user:password@proxy.dom.ain:8080/ But it' doesn't work so I've also added to .curlrc: proxy-ntlm No way. I've logged in and out and rebooted so many times I just can't believe it :( Can't I just add these options (--proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/) to the curl command line specified in YOU? If so, where? When I try to use zypper, I get the following error: :~ # zypper sa http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ Determining http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ source type... .. not YUM .. not YaST Unknown source type for http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ :~ # I can't add new Installation Sources, I can't get the Online Update Configuration to work, ... And the .curlrc file is of no good :( I just want to modify YOU so that I can add the options I know that work on the CLI. TIA Rafa -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/27/07, Rafa Griman <rafagriman@gmail.com> wrote:
On 3/27/07, Mark Goldstein <goldstein.mark@gmail.com> wrote:
On 3/27/07, Rafa Griman <rafagriman@gmail.com> wrote:
When I defined the Proxy settings via YaST (as you describe) I (root) didn't get the .curlrc file created so I created it manually. Logged out ... logged in ... rebooted ... The only thing left to do ins reinstall ;) But I still get the error I get when I start the Online Update Configuration and when I try to add a new installation source:
Execute curl command failed with '56': curl: (56) Received HTTP code 407 from proxy after CONNECT
My proxy settings are as follows:
http_proxy=http://user:password@proxy.dom.ain:8080/ ftp_proxy=http://user:password@proxy.dom.ain:8080/ gopher_proxy=http://user:password@proxy.dom.ain:8080/ https_proxy=http://user:password@proxy.dom.ain:8080/ no_proxy=10*, localhost, 127.0.0.1
Would I have to remove the "user:password" part from these variables if I use the .curlrc file? YaST put them there so I guess that's OK and they won't interfere.
Would I need to add to the .curlrc file a:
--proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm
entry?
On my laptop I have: http_proxy=http://proxy.dom.ain:port/ ftp_proxy=http://proxy.dom.ain:port/ gopher_proxy=http://proxy.dom.ain:port/ https_proxy=http://proxy.dom.ain:port/ no_proxy=localhost, 127.0.0.1, <local domain>
No user:password part.
When defining proxy in Yast, I added username and proxy password in Proxy Authentication box and tried "Test Proxy Settings". Does it work on your machine?
Thanks for your help Mark but ...
Nope, it doesn't work :( And I've checked my proxy variables and right now they're just like yours.
I've managed to download a file with curl with the following options:
curl --proxy-ntlm --proxy-user user:password --url http://curl.haxx.se/programs/curlmirror.txt --proxy http://proxy.dom.ain:8080/ -O
And managed to get the perl script (curlmirror.pl) to work with the following command line:
curlmirror.pl -a '--proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/' http://download.videolan.org/pub/vlc/SuSE/10.2/ -c -o ./ -s 1000000 -t ~/tmp/
The only issue is I can't get the RPM files to get named <whatever>.rpm, they're all renamed to <whatever>.rpm.html :(
There's no way to get wget or rsync out through the proxy, the only one is curl. That's why I'd like to modify the YOU line(s) where curl is used and add these options: --proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/
These are the error messages I get with wget and rsync:
:~/mirror_suse> rsync -a -v --progress --delete http://download.videolan.org/pub/vlc/SuSE/10.2/ videolan/
ssh: http: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(459) [receiver=2.6.8]
:~/mirror_suse> wget --proxy-user=user --proxy-password=password http://download.videolan.org/pub/vlc/SuSE/10.2/i586/a52dec-0.7.4-2.0.i586.rp...
--10:42:16-- http://download.videolan.org/pub/vlc/SuSE/10.2/i586/a52dec-0.7.4-2.0.i586.rp... => `a52dec-0.7.4-2.0.i586.rpm' Resolving proxy.dom.ain... 10.0.144.6 Connecting to proxy.dom.ain|10.0.144.6|:8080... connected. Proxy request sent, awaiting response... 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ) 10:42:16 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ).
:~/mirror_suse>
YaST finally managed to create the .curlrc file (after rebooting) but it still doesn't work. Right now .curlrc is as follows:
# Changed by YaST2 module proxy 03/27/2007 proxy-user = "user:password" proxy = http://user:password@proxy.dom.ain:8080/
But it' doesn't work so I've also added to .curlrc:
proxy-ntlm
No way. I've logged in and out and rebooted so many times I just can't believe it :(
Can't I just add these options (--proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/) to the curl command line specified in YOU? If so, where?
When I try to use zypper, I get the following error:
:~ # zypper sa http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ Determining http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ source type... .. not YUM .. not YaST Unknown source type for http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/
:~ #
I can't add new Installation Sources, I can't get the Online Update Configuration to work, ... And the .curlrc file is of no good :( I just want to modify YOU so that I can add the options I know that work on the CLI.
I'm out of ideas, sorry. Looks like it depends on authentication method used by your proxy. I understood that curl by default tries different methods. I do not need to specify any method, so in my case it is able to find the proper one. And you have to explicitly specify ntml. wget does not have any such option. BTW, when you get html file instead of rpm, did you check the size and contents of the file (sometimes I saw that resulting html file contained some error message instead of the actual file). Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi :) El Martes, 27 de Marzo de 2007 16:37, Mark Goldstein escribió: [...]
I'm out of ideas, sorry. Looks like it depends on authentication method used by your proxy. I understood that curl by default tries different methods. I do not need to specify any method, so in my case it is able to find the proper one. And you have to explicitly specify ntml. wget does not have any such option.
Thanks for your help :) I guess I'm stuck. Well if anyone from SUSE/Novell is reading this thread ... this is the reason the company I work for has all it's servers running Red Hat. We don't have this issue with Red Hat. Tomorrow I'll try with SLES 10 ... last opportunity to get SUSE/Novell in the company I work for ... It would be great help if someone from SUE/Novell could step up and lend me a helping hand ... might get them a new customer ;) Now the thing is ... why curl accepts --proxy-ntlm option on the CLI but it doesn't accept it via .curlrc?
BTW, when you get html file instead of rpm, did you check the size and contents of the file (sometimes I saw that resulting html file contained some error message instead of the actual file).
Oh they're RPMs ... just that the name gets changed to <whatever>.rpm.html. I'd have to rename all the RPMs back to .rpm. Yes I know, I can script that but I don't see the ponit in doing that when YOU/curl/.curlrc should be able to patch my system automatically. Thanks once again :) Rafa -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/27/07, Rafa Griman <rafagriman@gmail.com> wrote:
On 3/27/07, Mark Goldstein <goldstein.mark@gmail.com> wrote:
On 3/27/07, Rafa Griman <rafagriman@gmail.com> wrote:
When I defined the Proxy settings via YaST (as you describe) I (root) didn't get the .curlrc file created so I created it manually. Logged out ... logged in ... rebooted ... The only thing left to do ins reinstall ;) But I still get the error I get when I start the Online Update Configuration and when I try to add a new installation source:
Execute curl command failed with '56': curl: (56) Received HTTP code 407 from proxy after CONNECT
My proxy settings are as follows:
http_proxy=http://user:password@proxy.dom.ain:8080/ ftp_proxy=http://user:password@proxy.dom.ain:8080/ gopher_proxy=http://user:password@proxy.dom.ain:8080/ https_proxy=http://user:password@proxy.dom.ain:8080/ no_proxy=10*, localhost, 127.0.0.1
Would I have to remove the "user:password" part from these variables if I use the .curlrc file? YaST put them there so I guess that's OK and they won't interfere.
Would I need to add to the .curlrc file a:
--proxy-anyauth | --proxy-basic | --proxy-digest | --proxy-ntlm
entry?
On my laptop I have: http_proxy=http://proxy.dom.ain:port/ ftp_proxy=http://proxy.dom.ain:port/ gopher_proxy=http://proxy.dom.ain:port/ https_proxy=http://proxy.dom.ain:port/ no_proxy=localhost, 127.0.0.1, <local domain>
No user:password part.
When defining proxy in Yast, I added username and proxy password in Proxy Authentication box and tried "Test Proxy Settings". Does it work on your machine?
Thanks for your help Mark but ...
Nope, it doesn't work :( And I've checked my proxy variables and right now they're just like yours.
I've managed to download a file with curl with the following options:
curl --proxy-ntlm --proxy-user user:password --url http://curl.haxx.se/programs/curlmirror.txt --proxy http://proxy.dom.ain:8080/ -O
And managed to get the perl script (curlmirror.pl) to work with the following command line:
curlmirror.pl -a '--proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/' http://download.videolan.org/pub/vlc/SuSE/10.2/ -c -o ./ -s 1000000 -t ~/tmp/
The only issue is I can't get the RPM files to get named <whatever>.rpm, they're all renamed to <whatever>.rpm.html :(
There's no way to get wget or rsync out through the proxy, the only one is curl. That's why I'd like to modify the YOU line(s) where curl is used and add these options: --proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/
These are the error messages I get with wget and rsync:
:~/mirror_suse> rsync -a -v --progress --delete http://download.videolan.org/pub/vlc/SuSE/10.2/ videolan/
ssh: http: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(459) [receiver=2.6.8]
:~/mirror_suse> wget --proxy-user=user --proxy-password=password http://download.videolan.org/pub/vlc/SuSE/10.2/i586/a52dec-0.7.4-2.0.i586.rp...
--10:42:16-- http://download.videolan.org/pub/vlc/SuSE/10.2/i586/a52dec-0.7.4-2.0.i586.rp... => `a52dec-0.7.4-2.0.i586.rpm' Resolving proxy.dom.ain... 10.0.144.6 Connecting to proxy.dom.ain|10.0.144.6|:8080... connected. Proxy request sent, awaiting response... 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ) 10:42:16 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ).
:~/mirror_suse>
YaST finally managed to create the .curlrc file (after rebooting) but it still doesn't work. Right now .curlrc is as follows:
# Changed by YaST2 module proxy 03/27/2007 proxy-user = "user:password" proxy = http://user:password@proxy.dom.ain:8080/
But it' doesn't work so I've also added to .curlrc:
proxy-ntlm
No way. I've logged in and out and rebooted so many times I just can't believe it :(
Can't I just add these options (--proxy-ntlm --proxy-user user:password --proxy http://proxy.dom.ain:8080/) to the curl command line specified in YOU? If so, where?
When I try to use zypper, I get the following error:
:~ # zypper sa http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ Determining http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/ source type... .. not YUM .. not YaST Unknown source type for http://ftp.gwdg.de/pub/linux/suse/suse_update/10.2/
:~ #
I can't add new Installation Sources, I can't get the Online Update Configuration to work, ... And the .curlrc file is of no good :( I just want to modify YOU so that I can add the options I know that work on the CLI.
I'm out of ideas, sorry. Looks like it depends on authentication method used by your proxy. I understood that curl by default tries different methods. I do not need to specify any method, so in my case it is able to find the proper one. And you have to explicitly specify ntml. wget does not have any such option. BTW, when you get html file instead of rpm, did you check the size and contents of the file (sometimes I saw that resulting html file contained some error message instead of the actual file). Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Mark Goldstein
-
Rafa Griman
-
Rafa Grimán