Tunnelling with -R

From: Richard Caley (MYFIRSTNAME@MYLASTNAME.org.uk)
Date: 12/23/02


From: Richard Caley <MYFIRSTNAME@MYLASTNAME.org.uk>
Date: Mon, 23 Dec 2002 12:01:00 GMT


I am trying to forward connections to a server behind a NAT router. On
the server machine I run

        ssh [...] -R remoteport:localhost:port user@remotehost sleep 30

This listens on port 127.0.0.1:remoteport on remotemachine.

So I can connect from a process on the remote machine to the hidden
server. So far so good.

I would like to be able to connect to that remote server from other
machines on the network where remotehost lives. When using a -L style
tunnel the -g argument works, but for -R it doesn't seem to be
working.

I can understand that `poke a hole through the firewall and let anyone
connect through' is a dangerous operation, but in this case both ends
are behind firewalls, so I am just bringing one (relatively) safe area
inside another.

(OpenSSH_2.5.2p2 at the server end, OpenSSH_3.4p1 at the client end).

-- 
Mail me as MYFIRSTNAME@MYLASTNAME.org.uk        _O_
                                                 |<


Relevant Pages

  • Re: How to Maintain an IIS Server?
    ... > server running on a Windows 2000 server. ... before a firewall and antivirus have been installed]. ... open ports; however, this will not identify which program is using the port. ...
    (microsoft.public.inetserver.iis.security)
  • Re: CEICW fails at firewall config
    ... ISA Server prevents connection to a remote desktop when you connect through ... Remote Web Workplace on a Windows Small Business Server 2003-based computer ... Acceleration Server as a firewall. ... connection uses TCP port 4125. ...
    (microsoft.public.windows.server.sbs)
  • Re: How to Maintain an IIS Server?
    ... >> server running on a Windows 2000 server. ... > before a firewall and antivirus have been installed]. ... > program or executable using that port. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Activesync / Airsync - Alternative Ports
    ... Setup a reverse HTTP proxy. ... Another idea is to use the PPTP capabilities of a Windows Server to allow ... Satellite - Cisco Firewall - Exchange Server ... So on the server side you would configure the port 80 to redirect to ...
    (microsoft.public.pocketpc.activesync)
  • Re: More on Remote Desktop
    ... Also note that if you use the default listening port for Remote Desktop there is no need to append ... >> point it to the Static IP of the internal server. ... >> firewall to get between your clients and server on your own LAN. ... >> mine setup so that my firewall makes the PPPoE connection to my ADSL ISP. ...
    (microsoft.public.windowsxp.network_web)