LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-09-2008, 10:51 AM   #1
Anubis
Member
 
Registered: Mar 2002
Location: /dev/null
Distribution: Ubuntu - Fedora - or whatever works or gets handed to me.
Posts: 119

Rep: Reputation: 15
How to setup home linux box as web proxy for use from work?


So the issue is, internet access from work is available, but some sites are blocked randomly. I am not into the facebook,myspace,youtube or social sites.
But I do need access to some gaming/hardware reviews and so on.
Most of these sites have downloads and that makes them a big nono at work.

So my question: Is there any way I could setup a proxy on my home nix, so that I could log on to a local webpage (dont what anyone using my system freely) and from there on browse the internet without restrictions?

Something similar like proxy.org but on my local system,
 
Old 03-09-2008, 11:35 AM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
check out squid
 
Old 03-09-2008, 08:13 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It is possible to create an SSH tunnel through a firewall and run other software through it (proxies, browsers, etc.). Make sure you first check with the system administrators at work though - it may be something they'll have a real issue with.
 
Old 03-09-2008, 11:22 PM   #4
Anubis
Member
 
Registered: Mar 2002
Location: /dev/null
Distribution: Ubuntu - Fedora - or whatever works or gets handed to me.
Posts: 119

Original Poster
Rep: Reputation: 15
thanks for the replies guys.
I thought of using squid, I just have not used it enough.
My question is, do i have to setup squid as my proxy in the browser?
Or can I setup the proxy so I would have to log on and navigate within a frame?
 
Old 03-10-2008, 08:11 AM   #5
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
Well you aren't so much setting squid as your proxy in your browser as you are setting your home computer that is running squid as the proxy in your browser. So once you have configured squid at home, and made sure you can tunnel ssh to your home box, you should be pretty well off, barring some configuration issues with squid.

How far along are you in the process?
 
Old 03-10-2008, 08:44 AM   #6
Anubis
Member
 
Registered: Mar 2002
Location: /dev/null
Distribution: Ubuntu - Fedora - or whatever works or gets handed to me.
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lsteacke View Post
Well you aren't so much setting squid as your proxy in your browser as you are setting your home computer that is running squid as the proxy in your browser. So once you have configured squid at home, and made sure you can tunnel ssh to your home box, you should be pretty well off, barring some configuration issues with squid.

How far along are you in the process?
I have not even installed squid on my ubuntu 7.10 yet.

I have a dual boot system, with xp for games.
 
Old 03-10-2008, 09:25 AM   #7
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
well you'll only be able to run squid when your linux box is booted up...But I do think there is a squid or something like it for XP...
 
Old 03-11-2008, 12:25 PM   #8
framp
Member
 
Registered: Apr 2003
Location: Next to Stuttgart, Germany
Distribution: Debian, Mint, Raspbian
Posts: 131
Blog Entries: 5

Rep: Reputation: 27
Just a warning: If sites are blocked by your employer by intent and you circumvent these restrictions you may get serious problems with your employer if they detect your circumventions ...
 
Old 03-11-2008, 03:51 PM   #9
CarLost
Member
 
Registered: Jun 2004
Location: Sentado en mi trasero en Chile
Distribution: ArchLinux
Posts: 47

Rep: Reputation: 16
You can use Squid at home, and is better use the port 443, because it have a almost non posibility to be blocked by the administrator
 
Old 03-11-2008, 08:14 PM   #10
Praetorian
Member
 
Registered: Jun 2002
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 16
Squid seems like too much work for such a task. Try this:

ssh -NCqD 3128 <your_ip>

This will open a compressed SSH connection to <your_ip> (ie, 1.2.3.4) and make SSH act as a local SOCKS server, binding to port 3128. You won't see any output as the session is open in "quiet mode" '-q'.

I assume you're using Firefox as a browser (if not, you should). Go into its Advanced Preferences and click on Network > Settings (Configure How Firefox Connects To The Internet). You want the following configuration:

* Manual proxy configuration

HTTP Proxy: (blank) Port: 0
SSL Proxy: (blank) Port: 0
FTP Proxy: (blank) Port: 0
Gopher Proxy: (blank) Port: 0

SOCKS Host: 127.0.0.1 Port: 3128

* SOCKS v5
No Proxy For: localhost, 127.0.0.1


That should do it for you. I've only tested this using the OpenSSH clients. I'm not exactly how to do this with PuTTY, although this should help.

Last edited by Praetorian; 03-11-2008 at 08:16 PM.
 
Old 03-11-2008, 09:51 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by Praetorian View Post
That should do it for you. I've only tested this using the OpenSSH clients. I'm not exactly how to do this with PuTTY, although this should help.
It does work with putty as well. On the Connection/SSH/Tunnels tab select a source port, click the Dynamic radio button and click the Add button.

To the OP though, please get your system admins permission before doing this (I know this has been mentioned several times, but it's a sackable offense here so I'm cautious about it).
 
  


Reply



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
HowTo setup a proxy for my home lan fedix Linux - Networking 9 11-03-2007 04:18 AM
Email and Web Proxy Server Setup defcon2000 Linux - Newbie 3 04-14-2005 03:14 AM
Best distribution for easy to setup out of the box secure web server? jimdaworm Linux - Security 11 04-05-2005 01:45 AM
cannot ssh to home linux box from work gene_albin Linux - Networking 4 11-20-2004 07:26 AM
Connect to work box from home box slackist Linux - Networking 4 09-18-2004 05:34 AM

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

All times are GMT -5. The time now is 06:26 AM.

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