LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-02-2009, 06:08 PM   #1
edencraze
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Rep: Reputation: 0
Setup proxy server using SSH and use yum


My ISP seems to be having some configuration problems cos of which I cant download certain files (mostly exe and msi and some rpm files) as the download either doesnt start (firefox download window showing "Starting..." all the time) or download gets stuck at some point of time.

However I have access to my college computer through SSH using public key authentication and my college computer has internet access 24x7. I would like to be helped with 2 things:
  1. How do I use the internet through my college computer? Like when I use the internet, the requests go through my college computer so it must appear that the requests come from my college computer IP while I use firefox from my home computer
  2. How do I configure yum to download packages through my college computer? I want to setup yum to use the IP of my college computer to download the packages.

In short, I want to use the ISP of my college computer for all internet access from my home.

Can someone help?
 
Old 07-02-2009, 07:11 PM   #2
edencraze
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
What I managed to do so far is create a SSH tunnel by using the command:
ssh -D 3456 mycollege.edu

Then after I login, I set firefox to use the proxy setting:
SOCKS Host: 127.0.0.1 Port: 3456
SOCKS v5

After applying the above firefox setting I am able to use the internet using my home computer & firefox through mycollege.edu computer.

Now I set the environment variable http_proxy like
export http_proxy="http://127.0.0.1:3456/"
but when I run yum (say yum upgrade) this is a part of the error message that I get:

Quote:
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.sfc.wide.ad.jp
* rpmfusion-free-updates: astromirror.uchicago.edu
* rpmfusion-nonfree-updates: astromirror.uchicago.edu
* rpmfusion-free: astromirror.uchicago.edu
* rpmfusion-nonfree: astromirror.uchicago.edu
* updates: ftp.oss.eznetsols.org
http://astromirror.uchicago.edu/rpmf...ta/repomd.xml: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://download1.rpmfusion.org/free/...ta/repomd.xml: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://fedora.tu-chemnitz.de/pub/lin...ta/repomd.xml: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://fedora.uib.no/rpmfusion/free/...ta/repomd.xml: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://fr2.rpmfind.net/linux/rpmfusi...ta/repomd.xml: [Errno 4] IOError: <urlopen error >
Trying other mirror.
http://ftp-stud.hs-esslingen.de/pub/...ta/repomd.xml: [Errno 4] IOError: <urlopen error >
Trying other mirror.
What could have gone wrong? Please help... Thanks in advance!!!
 
Old 07-02-2009, 07:29 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,464
Blog Entries: 54

Rep: Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899
What does 'curl -x 127.0.0.1:3456 http://astromirror.uchicago.edu/rpmf...ata/repomd.xml' return?
 
Old 07-02-2009, 07:29 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you set the proxy up in yum.conf? Have a look at "man yum.conf" for details.
 
Old 07-02-2009, 07:41 PM   #5
edencraze
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
@unSpawn: it returned "curl: (52) Empty reply from server"

@billymayday: After you mentioned I added the following lines in /etc/yum.conf
proxy=http://127.0.0.1:6666/
 
Old 07-02-2009, 07:45 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why not 3456?
 
Old 07-02-2009, 07:48 PM   #7
edencraze
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
@billymayday: I was experimenting with various ports thinking that it might be a problem with the port number... Anyways, I once again changed the port to 3456 and proxy=http://127.0.0.1:3456/... Sorry for mistyping the port number of the discussion

Last edited by edencraze; 07-02-2009 at 08:25 PM.
 
  


Reply

Tags
proxy, ssh, using, yum


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
how to configure yum for proxy server jaycee4u Linux - Newbie 4 07-25-2009 06:55 AM
How to setup yum to work under a proxy server. SBN Linux - General 4 05-12-2009 01:40 PM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
Yum behind proxy server lebabyg Fedora 0 10-29-2006 05:50 PM
Configuring YUM for behind a proxy server Linux_noobnoob Fedora 4 09-07-2006 03:29 PM


All times are GMT -5. The time now is 04:18 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