Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 11-19-2008, 03:07 PM   #1
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Rep: Reputation: 33
Tricks with socks and putty

I work from a variety of computers, and to keep my notes centralised and privately accessible wherever I am, I use putty as a socks5 server to login to my home (ubuntu) pc that serves local (behind a router) web pages. I can tell Firefox to use the socks5 connection, but there are two problems:

1. This directs all Firefox traffic through the proxy
2. I don't normally use Firefox

Is there a way, on a system wide level, to redirect specific traffic through my ssh/socks proxy?
Old 11-19-2008, 03:12 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
Why not just port tunnel the port you want to your home connection through putty, no need to use a proxy server within firefox, etc. Unless you're trying to accomplish something differently.
Old 11-19-2008, 05:52 PM   #3
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
That can be messy: putting putty in your socks. Squelches when you walk.
Old 11-19-2008, 06:50 PM   #4
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
Ah, putty is more featureful than I realised. I had a dynamic tunnel set up for port 9000, which I used with Firefox's socks proxy configuration. I did more reading and found the better way. I didn't understand "destination" is relative to the remote machine, so localhost is the remote machine. Source port is what you connect to, so in my case, I put localhost:9999 iuto my browser, and get to on the remote machine.

This link is really helpful:

I can even remote desktop to my work pc from home, after remote port forwarding port 3389!

Last edited by djeikyb; 11-19-2008 at 08:55 PM.
Old 08-31-2009, 02:36 PM   #5
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
Thought I'd give an update.. Found what I was really looking for with Privoxy. Putty still opens a socks connection to my home server, but Privoxy routes all system network traffic (based on some simple pattern matching) through it. So, doesn't matter that Opera and Chrome don't have native socks support, and I can decide which traffic goes where. As an added bonus, Privoxy comes with sweet ad filters out of the box.


putty, socks, windows xp

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
Socks 5 where ? pakos Linux - Newbie 0 12-23-2004 09:58 AM
need help with irssi socks spaikin Linux - Software 5 01-02-2004 12:07 PM
quake3 socks Kilka Linux - Games 0 10-15-2003 09:09 PM
socks port vanibhat Linux - Networking 1 08-15-2003 12:32 PM
setting socks manokb Linux - Networking 0 05-07-2003 09:48 AM

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration