Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-02-2009, 06:08 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2007
Posts: 17
Rep:
|
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:
- 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
- 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?
|
|
|
|
07-02-2009, 07:11 PM
|
#2
|
|
LQ Newbie
Registered: Dec 2007
Posts: 17
Original Poster
Rep:
|
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:
What could have gone wrong? Please help... Thanks in advance!!!
|
|
|
|
07-02-2009, 07:29 PM
|
#3
|
|
Moderator
Registered: May 2001
Posts: 24,788
|
|
|
|
|
07-02-2009, 07:29 PM
|
#4
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Have you set the proxy up in yum.conf? Have a look at "man yum.conf" for details.
|
|
|
|
07-02-2009, 07:41 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2007
Posts: 17
Original Poster
Rep:
|
@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/
|
|
|
|
07-02-2009, 07:45 PM
|
#6
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Why not 3456?
|
|
|
|
07-02-2009, 07:48 PM
|
#7
|
|
LQ Newbie
Registered: Dec 2007
Posts: 17
Original Poster
Rep:
|
@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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:33 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|