Re: Tunneling misc questions.

From:
Date: 10/28/02


Date: Mon, 28 Oct 2002 15:35:11 GMT

Magnus wrote:
> Hi all.
>
> I just wanted to ask a few things. I tried to look for the FAQ, and I
> think I found it, but please accept my apologies in case my questions
> have already been answered.
>
> Ok. So, I want to set up an SSH-based tunnel from my computer at
> work, to a computer outside, to carry primarily HTTP traffic, and
> maybe some other stuff too (like VNC or X).
>
> This is how I figured it:
>
> workstation -[SSH]>-- firewall --<[SSH}- outside machine --- whole Net
>
> (workstation probably running PuTTY)
>
> That is, I'm not looking to set up only one connection for just VNC or
> just mail, I want to hide my surfing from any snooping proxies, etc.
>
> Now, getting out should not be a problem. If it is, I should be able
> to get a HTTP tunnel working. My main concern is with the "outside
> machine". How much special configuration will I need to get my HTTP
> requests out from that machine to the rest of the world? Any? A lot?
> Would I need to install a HTTP proxy on that machine?
>
>
> Also, do any of you have any experience in setting up this kind of
> thing on a Freesco box as the outside machine? I already have one I
> can use, and it would be neat to do just that.
>
>
> Now I should probably say something like "I'm not going to use this to
> violate company policy, for cracking, porn surfing, MP3s.." etc, like
> some people do, but you wouldn't know if I did anyway, would you? So
> I won't.
>
>
> Magnus

This is easy and I do it all the time. For my purposes I use Junkbuster
as my http proxy at home. This is not necessary, but I use it to clean
the ads from my surfing.

I have junkbuster listening on an internal ip address on port 8000, so
my ssh syntax is (simply):
ssh user@server -N -L 8000:internal_ip:8000

I point my browser's proxy at localhost:8000 (which is the first 8000
above) which will proxy my session to junkbuster listening on the
internal_ip 8000.

If you want to tunnel to your isp's pop server, add:
   -R 110:isp_pop_server_ip:110

If you want to tunnel to your isp's usenet server, add:
   -R 119:isp_nntp_server:119

The -N option in the ssh syntax is jsut for port forwarding and doesn't
open up a shell on the remote ssh server. It's up to you to use.

If you want a generic socks4 proxy, ssh will do that as well:
   ssh -D 5555 user@server

Then point your browser/whatever to localhost:5555. This is as simple
as it gets.



Relevant Pages

  • Re: Tunnel all the traffic
    ... Not sure about a local proxy, but the SSH server that you connect to can ... " I'd like to tunnel all the TCP trassic of my computer ... I started to try tunnel http and https traffic but I ...
    (comp.security.ssh)
  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • RE: HOWTO Ping LAN???
    ... SSH to the box, and tunnel to other internal machines ... > network is by tunneling. ...
    (freebsd-questions)
  • SSH TCP forwarding: works with v1, not with v2 ssh
    ... that they're setting up the tunnels with no problem, ... I can get to the work ssh daemon: ... debug1: Connections to remote port 65002 forwarded to local address palimpsest:22 ... something answers (if I get "connection refused" there's no listener); ...
    (FreeBSD-Security)
  • Re: Help with VNC Please....
    ... I don't use VNC through a SSH tunnel but I have used Remote Desktop through a SSH tunnel in the past. ... Al Jarvi (MS-MVP Windows Networking) ...
    (microsoft.public.windowsxp.work_remotely)