Re: Tunneled IP Addresses?

From: Jacob Nevins (jacobn_at_chiark.greenend.org.uk)
Date: 11/25/05


Date: 25 Nov 2005 14:34:42 +0000 (GMT)

tsreyb@yahoo.com writes:
>I use ssh tunnels (via putty) to successfully browse my remote web
>servers. First I connect via ssh. Then I configure an ssh tunnel by
>specifying that all requests to a particular remote host be sent to
>'127.0.0.1' - the ssh application then takes over any HTTP requests to
>that address and forwards them out the tunnel.

To avoid confusion, I wouldn't put it like that. Rather than SSH "taking
over" 127.0.0.1 at the IP level, it just starts listening on 127.0.0.1
port 80; it's more like you've started a web server on your local
computer, which you then trick your web browser into believing is a
particular remote host by fiddling your hosts table.

>However, some of the pages on the remote server refer to additional
>pages (on the same server), but specify its IP Address rather than
>hostname. [...]
>
>I was hoping I could simply add a route to the private network via
>127.0.0.1. For example:
>
> route add 10.1.0.0 mask 255.255.0.0 127.0.0.1 metric 1

Rather than trying to persuade your IP stack to do this, I'd do it at a
higher level -- set up PuTTY to use a "dynamic tunnel", which starts up
a SOCKS proxy listening on the local machine, and then configure the web
browser to use that SOCKS proxy. Requests for _any_ hostname or IP
address made by the web browser will then go over the tunnel.



Relevant Pages

  • server securing issues
    ... have done some securing on my solaris server and ... Information about the remote host: ... Port ssh ... An SSH server is running on this port. ...
    (SunManagers)
  • 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: restrict ssh access
    ... > We have one ssh server which receives about 6000 failed attempts to ... > unsuccessful login attempts per client IP address? ... the remote server is also running OpenSSH. ...
    (comp.security.ssh)
  • RE: Re: Remote connections
    ... Compliments of Cygwin you can setup a SSH server on ... connection through the SSH connection. ... Aside from creating a VPN tunnel and then performing a Remote Desktop ... Server Terminal Services and XP and 2003 server Remote Desktop machines. ...
    (Focus-Microsoft)
  • Re: reverse shell session
    ... I want to open a session on a client that connects to my server and makes ... a tunnel. ... You may ask why i want to do that, well the remote machine is behind a ... You could run an ssh server on the machine that's behind the FW on some ...
    (comp.security.ssh)