LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-12-2007, 07:19 AM   #1
arroquant
LQ Newbie
 
Registered: Dec 2006
Location: indonesia
Distribution: ubuntu feisty fawn, slackware 11/12
Posts: 12

Rep: Reputation: 0
[ask] using wget through SOCKS proxy


Hi all,

im sorry if this question is already asked before, i've searched through this forum and i found no thread related to my question.

i read on wget's website that wget supports SOCKS proxy, but i found no entry explaining how to use wget with socks..

im using socks via ssh tunneling with this syntax
Code:
$ ssh me@some.host.com -D 8888
and then configuring my firefox to connect via localhost socks proxy, but i have no idea about configuring wget to download via socks like my browser..

anyone have any idea?

thanks in advance
 
Old 11-12-2007, 08:21 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
However, if you are behind a firewall that requires that you use a socks style gateway, you can get the socks library and build Wget with support for socks.
From the above excerpt from the wget manual, it looks like you have to recompile wget with socks support. This was made until wget-1.9 by specifying option --with-socks to ./configure. I don't know about recent versions 1.10.X, since this option has been removed.
 
Old 11-13-2007, 02:16 AM   #3
arroquant
LQ Newbie
 
Registered: Dec 2006
Location: indonesia
Distribution: ubuntu feisty fawn, slackware 11/12
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
From the above excerpt from the wget manual, it looks like you have to recompile wget with socks support. This was made until wget-1.9 by specifying option --with-socks to ./configure. I don't know about recent versions 1.10.X, since this option has been removed.
i've already re-build my wget 1.9 with socks option before i started this this thread.. the thing is how to use wget with socks.. i've tried putting this line to ~/.wgetrc
Code:
http_proxy = 127.0.0.1:8888
use_proxy = on
but it doesnt work..

hmm..
 
Old 11-13-2007, 03:35 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Sorry, I misunderstood the original question. What is the exact error message you get when trying to download a file? Maybe do the proxy require authentication? In this case you should activate the flags
Code:
proxy_user=
proxy_passwd=
or trying to use the syntax
Code:
http_proxy=http://user:password@127.0.0.1:8888
 
Old 11-13-2007, 05:28 AM   #5
arroquant
LQ Newbie
 
Registered: Dec 2006
Location: indonesia
Distribution: ubuntu feisty fawn, slackware 11/12
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Sorry, I misunderstood the original question. What is the exact error message you get when trying to download a file? Maybe do the proxy require authentication? In this case you should activate the flags
Code:
proxy_user=
proxy_passwd=
or trying to use the syntax
Code:
http_proxy=http://user:password@127.0.0.1:8888
the problem is i dont know how to use SOCKS proxy with wget after i re-compile it with socks support..

the syntax you posted is for http proxy and AFAIK socks proxy doesnt need any username & password..

any idea?
 
Old 09-30-2009, 07:12 PM   #6
zatricky
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 1
Quote:
Originally Posted by arroquant View Post
any idea?
Forgive me for opening up an old thread - I still believe some will find it relevant.

Even though there was some clue of socks support, its a lot easier to use proxychains.
 
  


Reply

Tags
socks, wget


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
socks proxy - env variable andrewlkho Linux - Networking 1 06-23-2013 10:58 PM
SOCKS Proxy w/router. Tizzle General 0 05-31-2006 03:24 PM
RHE3: Socks Proxy Zai Red Hat 2 06-26-2005 08:55 PM
Kopete through a socks proxy NNP Linux - Newbie 1 05-30-2005 12:56 PM
Can I use ntpd through a socks proxy?? zhaoyoubing Linux - Networking 0 07-23-2003 10:24 PM


All times are GMT -5. The time now is 08:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration