LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-28-2012, 04:13 PM   #1
lukoro
LQ Newbie
 
Registered: May 2011
Location: USA
Posts: 6

Rep: Reputation: Disabled
Question SSH tunneling question.


So I'm trying to follow this tutorial - http://daniel.haxx.se/docs/sshproxy.html.

I'm having trouble understanding the "The SOCKS Proxy way" part of it.

Do I need to have an SSH server running on my "HOME" computer using OpenSSH? And use OpenSSH at the "WORK" computer for it to work? Or can I use PuTTY at "WORK"?

If anyone can explain maybe how to do this in a little more detail, it would be awesome.

Thank you.

Last edited by lukoro; 03-28-2012 at 08:22 PM.
 
Old 03-29-2012, 03:52 AM   #2
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Posts: 119

Rep: Reputation: 32
You only need a server at the remote end (where the output of the proxy will come from. The local proxy port is setup for the duration of the ssh command, when can be backgrounded.

Example: Run this...
Code:
ssh -N -o BatchMode=yes -D 4001 $rhost account@remote.host.somewhere &
echo PID of SSH proxy = $!
Now you have a SOCKS proxy port on 4001 of the local machine.
Remember that PID! You need to kill that background daemon process to close the proxy link!

Here is a test I like to try...
Code:
curl --socks5 localhost:4001 http://anonymouse.org/cgi-bin/anon-snoop.cgi |
   grep -A1 IP
This should return the IP address of the remote host where the SOCK proxy comes out! If it comes back with your local IP, or an error something is wrong.


You may like to look at "tsocks" which is a LD_PRELOAD library that will force most applications to use the indicated proxy port for its internet communications.
 
1 members found this post helpful.
Old 03-29-2012, 07:48 AM   #3
lukoro
LQ Newbie
 
Registered: May 2011
Location: USA
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you very much!
 
Old 03-29-2012, 11:57 PM   #4
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Posts: 119

Rep: Reputation: 32
Quote:
Originally Posted by lukoro View Post
Thank you very much!
Be sure to up my repretation ;-)

I am a late commer to these foums, so could use the 'rep' ;-)
 
  


Reply

Tags
apache, proxy, putty, ssh, ubuntu


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
How can I setup a stream across a subnet using a http proxy... trist007 Linux - Newbie 1 06-27-2010 02:51 PM
Server setup using Ubuntu for SSH account hosting for socks proxy? rdawgjigga Linux - Server 1 03-21-2010 08:30 PM
Can i tunnel http via ssh without setting up a http proxy? ginda Linux - Networking 3 12-24-2009 04:25 AM
LXer: How to use SSH Via HTTP Proxy using Corkscrew in Ubuntu LXer Syndicated Linux News 0 12-28-2008 02:50 PM
how to setup a http authentication proxy bluesurfer Linux - Networking 1 06-06-2007 02:47 AM


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

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