LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 11-12-2007, 06: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, 07:21 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,360

Rep: Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909
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, 01: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, 02:35 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,360

Rep: Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909
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, 04: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, 06: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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
socks proxy - env variable andrewlkho Linux - Networking 1 06-23-2013 09:58 PM
SOCKS Proxy w/router. Tizzle General 0 05-31-2006 02:24 PM
RHE3: Socks Proxy Zai Red Hat 2 06-26-2005 07:55 PM
Kopete through a socks proxy NNP Linux - Newbie 1 05-30-2005 11:56 AM
Can I use ntpd through a socks proxy?? zhaoyoubing Linux - Networking 0 07-23-2003 09:24 PM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
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