Re: port forwarding and secured connection




> machineA:#sshd -p 2222
> machineA:#ssh -f -g -N -L 2223:machineA:23 machineA
>
> A client telnet connection to port 2223 of machine A works.
>
> If I understand local port forwarding,
> the connection between the client and port 2223 on machine A should be
> not secured,
> the connection between port 2223 on machine A and port 23 should be
> secured.

No; they are both unsecured by SSH. In this model:

A -- TCP --> B:p == (ssh -L p:D:q C) ==> C -- TCP --> D:q

.... the connections A->B and C->D are plain TCP and unsecured by SSH.
However, if either A=B or C=D (as it is in your case), that leg is
generally considered secure since it does not go over a network. However,
the plaintext does go from one process to another on host C=D, and so
anyone privileged to inspect that IPC mechanism (loopback IP in this
case), can read the plaintext.

--
Richard Silverman
res@xxxxxxxx

.



Relevant Pages

  • Re: Correction
    ... Normally to physically disconnect is just a matter of reaching for the ... >> I have an ADSL connection which polls my computer from time to time, ... > disallow each and every port with Windows Firewall? ...
    (microsoft.public.windowsxp.messenger)
  • Re: Using Remote Desktop From an SBS Domain
    ... when you tried to RDP while attached directly to a port on your router? ... Internet to initiate an IP conversation with your computer. ... This situation is different than if you ran your own NAT connection sharing ...
    (microsoft.public.windows.server.sbs)
  • Re: Still cant connect to RWW or OWA remotely
    ... it certainly appears to be something about the SBS configuration. ... Meridian.local Ethernet adapter Local Area Connection: ... Windows SMALL BUSINESS SERVER 2003 Windows IP Configuration ... 192.168.254.254) directly to a port on the router and then ...
    (microsoft.public.windows.server.sbs)
  • Re: Still cant connect to RWW or OWA remotely
    ... it certainly appears to be something about the SBS configuration. ... Meridian.local Ethernet adapter Local Area Connection: ... Windows SMALL BUSINESS SERVER 2003 Windows IP Configuration ... 192.168.254.254) directly to a port on the router and then ...
    (microsoft.public.windows.server.sbs)
  • Re: Random unprivileged TCP ports below 5000 kind-of open for a fraction of a second
    ... When Nmap (or many ... > other applications, such as Telnet) does a connectcall, the OS is ... > supposed to choose a good souce port to bind to for the connection. ... I saw a familiar "Connection reset by peer" every time the random port ...
    (Incidents)