How to setup home linux box as web proxy for use from work?
Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu - Fedora - or whatever works or gets handed to me.
Posts: 119
Rep:
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,
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.
Distribution: Ubuntu - Fedora - or whatever works or gets handed to me.
Posts: 119
Original Poster
Rep:
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?
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.
Distribution: Ubuntu - Fedora - or whatever works or gets handed to me.
Posts: 119
Original Poster
Rep:
Quote:
Originally Posted by lsteacke
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.
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 ...
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:
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.