Eddie's Fancy

because I just can't help myself
  • Home
  • Houston Session Tunebook
  • Random Irish Tune Names
  • Photos
  • Software
    • Bird’s Eye
    • Bookit
    • GenPass
    • Mouse Swap
    • AWOL
  • About Me

Using ssh as a SOCKS proxy

For years I’ve used ssh port forwarding to access my home server. It works, but has it’s issues. I hated having to setup another forward for each service I wanted to use. Turns out, there was a better way. I kick off ssh to start a proxy server to my home box:

ssh -qT -f -ND 7070 user@homedomain
-q quiet, -T no pseudo tty allocated, -f go into the background after we enter the password, -N no remote command required and -D set SOCKS port.

and then configure the applications to use localhost and port 7070 for a proxy.

To make this really usable, I installed foxyproxy into Firefox and now only requests to homedomain are routed through the proxy server. All others are handled normally by the local network.

Neat.

Comments
No Comments »
Categories
General
Comments rss Comments rss
Trackback Trackback

View Eddie McCreary's profile on LinkedIn.
Follow Eddie McCreary on Twitter
Visit Eddie McCreary's Facebook page.
Download Eddie McCreary's vcard.
Download Eddie McCreary's public GPG key.
Download Eddie McCreary's resume.

 

June 2007
M T W T F S S
« May   Jul »
 123
45678910
11121314151617
18192021222324
25262728293031

What I'm Listening To...

  • Nic Jones – The Humpback Whale
  • The Albion Band – The Girl I Left Behind Me
  • Trees – Glasgerion
  • Fotheringay – Nothing More
  • Shirley Collins – Brigg Fair

  • Log in
  • Entries RSS
  • Comments RSS
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox