Re: port forwarding

From: Richard E. Silverman (res_at_qoxp.net)
Date: 06/17/05


Date: 17 Jun 2005 13:31:22 -0400


>>>>> "Payal" == Payal <payalrathod@gmail.com> writes:

    Payal> Hi, I always have some confusion on port forwarding. Can
    Payal> someone please clear my basic concepts with the following 2
    Payal> examples.

    Payal> ssh -L 1100:localhost:110 example.net

    Payal> When I connect to 127.0.0.1:1100 I am connected to
    Payal> example.net:110?

    Payal> ssh -L 1100:scriptkitchen.com:110 example.net

    Payal> How does this differ from above? Can someone explain what
    Payal> happens in both these cases?

Exactly the same thing happens in both cases: the SSH server makes a TCP
connection to the target of your forwarding on port 110. In the first
case, that happens to be on the same host; in the second, it's elsewhere.
Note that means that in the second case the tunnelled traffic is not
protected on the last leg of the tunnel.

-- 
  Richard Silverman
  res@qoxp.net