Re: SSH from Windows to Linux w/port forwarding.

From: Richard E. Silverman (res_at_qoxp.net)
Date: 09/23/05

  • Next message: Richard E. Silverman: "Re: ssh type of service (tos)"
    Date: 22 Sep 2005 20:42:52 -0400
    
    

    >>>>> "AS" == Andrew Schulman <andrex@deadspam.com> writes:

    >> Even this does not work and it should: $ ssh -L80:myserver.com:80
    >> myserver.com -v -N -f
    >>
    >> The whole point of using ssh was so that I didn't need to open more
    >> ports on my router.

    A network connection from a host back to itself is still a network
    connection. If you want to be able to make such connections -- as SSH
    forwarding does -- then your firewall must allow them. A simple firewall
    might say, "disallow all TCP connections to port 22 on the external
    address." That includes connections your forwarded connections, if the
    name myserver.com translates to that external address.

    The name "localhost", however, normally maps to 127.0.0.1, which is
    assigned to the host's loopback interface. A firewall will often just
    allow all loopback connections, since they must come from the same host
    and so are deemed safe. And a service which simply binds a port for
    listening without specifying a particular address, will be listening all
    all the host's addresses, including the loopback.

    -- 
      Richard Silverman
      res@qoxp.net
    

  • Next message: Richard E. Silverman: "Re: ssh type of service (tos)"

    Relevant Pages

    • Re: Proxy and Firewalls
      ... we will use port 80 for HTTP connections and use port ... If you host a website with different IP address, ... you can use port 443 for SSL connection for that new website. ...
      (microsoft.public.windows.server.sbs)
    • Re: Need help with bandwidth management . . .
      ... also be a good time to separate the wired from the wireless parts of ... wired connections. ... QoS lan port settings, and I cannot get anything consistent. ... switch ports and limit the bandwidth per port (the settings are ...
      (alt.internet.wireless)
    • Re: How I "turn-on" e-mail?
      ... I cannot connect to port 25 when I come from other hosts. ... I'm looking for some general advice on how to configure this host so ... Sendmail is configured by default to only listen on the loopback device. ... You will need to reconfigure it to listen for connections on your network ...
      (Fedora)
    • Re: Iptables FTP question
      ... for secondary connections. ... Some ftp servers don't allow passive mode because it is less safe from ... algs that allow port mode for client machines. ...
      (comp.security.firewalls)
    • Re: How I "turn-on" e-mail?
      ... I cannot connect to port 25 when I come from other hosts. ... I'm looking for some general advice on how to configure this host so ... Sendmail is configured by default to only listen on the loopback device. ... You will need to reconfigure it to listen for connections on your network ...
      (Fedora)