LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 11-19-2008, 02:07 PM   #1
djeikyb
Member
 
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, 02:12 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
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, 04:52 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,030
Blog Entries: 52

Rep: Reputation: Disabled
That can be messy: putting putty in your socks. Squelches when you walk.
 
Old 11-19-2008, 05:50 PM   #4
djeikyb
Member
 
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 192.168.1.2:80 on the remote machine.

This link is really helpful:
http://www.securityfocus.com/infocus/1816

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 07:55 PM.
 
Old 08-31-2009, 01:36 PM   #5
djeikyb
Member
 
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.
 
  


Reply

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


All times are GMT -5. The time now is 07:44 AM.

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