SSH Tunnel - How does it works?

From: Pablo Hauser (pablohauser_at_yahoo.com.ar)
Date: 09/20/05

  • Next message: Chris Clymer: "Re: sftp question"
    Date: Mon, 19 Sep 2005 23:33:21 +0000 (GMT)
    To: secureshell@securityfocus.com
    
    

    Hi list,
            Using SSH Tunneling, I was wondering how does
    it really works in the following scenario:

    Host1 running putty with tunneling on port xx, and
    redirecting its traffic to Host2, and Host3 accessing
    host 1 via port xx.

      | Host3 | | Host1 | | Host2 |
      | traffic: | --> |SSH tun on xx| --> | receipt: |
      |(Host1:xx)| |redir. Host2 | |(Host1:xx)|

    The idea is that Host1 redirects Host3:xx to Host2,
    but the question is: When traffic from Host2 comes
    back to Host1 as a reply of the former packet, how
    does Host1 REALLY knows that the packet must be
    forwarded to the tunnel and not, for example, to its
    Default Gateway?

    I think it should add some kind of dynamic route for
    that single connection, or keep some kind of table to
    'know' that the answer should be lead to the tunnel,
    but those are only suppositions... Maybe any of you
    have the correct answer.

    Thanks in advance.

    Pablo D. Hauser | pH
    www.securearg.net | Secure from the source

            

            
                    
    ___________________________________________________________
    1GB gratis, Antivirus y Antispam
    Correo Yahoo!, el mejor correo web del mundo
    http://correo.yahoo.com.ar


  • Next message: Chris Clymer: "Re: sftp question"

    Relevant Pages

    • RE: Tunneling over ssh with termination by the FW
      ... I would use something like Putty (ssh client software) to open a secure ... tunnel with the firewall. ... If the firewall has the sshd running on port ...
      (SSH)
    • Re: Volume Manager information not persistent across reboots
      ... metaset output is not same on the two nodes. ... On host1: Multi-owner is NOT recognised, Master is recognised, host2 is ... Host Owner Member ...
      (comp.unix.solaris)
    • Re: reverse ssh
      ... > logged into either box) can use the tunnel for whatever connects to it. ... > I suggest you connnect back to your home system's 'sshd' port and then you ... > will have to satisfy the home box's login authorization to get access ... > password from your script. ...
      (freebsd-questions)
    • Re: VNC Through WinSSHD
      ... But you NEED to know the port ... >> number for establishing the tunnel. ... When starting the local vnc viewer, you must enter the "remote" host ... For the remote end of the tunnel you specify either the real name or the ...
      (comp.security.ssh)
    • Re: vnc over ssh
      ... > So the following line would set up the tunnel to VNC the remote machine ... am sitting in front of will now forward information from port ... unencrypted and ready for the vncServer to respond. ... Nick Williams:) ...
      (comp.security.ssh)