LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2005, 09:32 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
wget through proxy


Hi all.

Hopefully someone can help me out here I am really stuck, and stumped.

My workplace has just put in a proxy server, which each user needs to log into to be able to access the web.

If I open firefox after I have put in the proxy server details it prompts me to enter a username and password. I put these in and all works fine.

However if I try and wget a file it won't work. I use wget daily and need to keep using it.

I have edited the .wgetrc file and added the following...

http_proxy = http://10.1.1.1:80/
ftp_proxy = http://10.1.1.1:80/
proxy_user = user123
proxy_passwd = test123

use_proxy = on

Each time I try and wget a file I get this...

ERROR 407: Proxy Access Denied.

Can anyone please help me? I'm getting to the desperate point here.

Thanks alot.

Regards
Craig
 
Old 08-14-2005, 10:57 PM   #2
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Re: wget through proxy

Quote:
Originally posted by TheRealDeal
Hi all.

Hopefully someone can help me out here I am really stuck, and stumped.

My workplace has just put in a proxy server, which each user needs to log into to be able to access the web.

If I open firefox after I have put in the proxy server details it prompts me to enter a username and password. I put these in and all works fine.

However if I try and wget a file it won't work. I use wget daily and need to keep using it.

I have edited the .wgetrc file and added the following...

http_proxy = http://10.1.1.1:80/
ftp_proxy = http://10.1.1.1:80/
proxy_user = user123
proxy_passwd = test123

use_proxy = on

Each time I try and wget a file I get this...

ERROR 407: Proxy Access Denied.

Can anyone please help me? I'm getting to the desperate point here.

Thanks alot.

Regards
Craig
What kind of authentication does the proxy require? At my work, they put in MS ISA, and it required NTLM authentication. That was a real pain for me for a while. I found this python authenticating proxy:
http://www.geocities.com/rozmanov/ntlm/

Basically, it let me hard code credentials for an NTLM account into a file. I then point my apps to use it as a proxy, and it uses the authenticating proxy as a proxy, and finally the packets get to where they are supposed to be going.
 
Old 08-14-2005, 11:17 PM   #3
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hi.

Thanks alot for the reply. It is ntlm that they use.

I have just installed the package that you referred me to. I have edited the /etc/ntlmaps/server.cfg file to what I believe is correct.

Is there a certain thing I need to change on the wget side to make it use ntlmaps instead?

Thanks
Craig
 
Old 08-15-2005, 05:58 PM   #4
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Quote:
Originally posted by TheRealDeal
Hi.

Thanks alot for the reply. It is ntlm that they use.

I have just installed the package that you referred me to. I have edited the /etc/ntlmaps/server.cfg file to what I believe is correct.

Is there a certain thing I need to change on the wget side to make it use ntlmaps instead?

Thanks
Craig
I think you might have to export an environment variable like HTTP_PROXY.
 
Old 09-14-2005, 06:06 AM   #5
vireshwali
Member
 
Registered: Sep 2005
Posts: 67

Rep: Reputation: 15
i agree to this also.
a same problem for me too
just execute this before doing a wget on a console

export http_proxy="http://proxy_iproxy_port"
now start using wget
 
Old 09-14-2005, 06:07 AM   #6
vireshwali
Member
 
Registered: Sep 2005
Posts: 67

Rep: Reputation: 15
oops seems the post changed to a smily.

am trying again

export http_proxy="http://<proxy_ip>:<proxy_port>"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wget with proxy? Cornholio Linux - Software 8 01-13-2005 02:12 AM
I want to download ftp-site files via wget and socks5 proxy server. jiawj Red Hat 2 10-28-2004 03:32 PM
wget & ftp proxy authentication dunric Linux - Networking 0 10-04-2004 12:16 PM
wget proxy problem henryluo Linux - Newbie 1 07-05-2004 06:31 PM
wget won't authenticate with a MPS 2.0 Proxy graywind Linux - Networking 0 12-16-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration