tunneling for dynamic ports

From: Kishore Karnam (kkarnam_at_yahoo.com)
Date: 12/25/03

  • Next message: Thomas Binder: "Re: Failed Password Error"
    Date: 25 Dec 2003 09:40:45 -0800
    
    

    I would like to know how a typical client-server traffic could be made
    secure using the SSH tunneling technique. Here is the client-server
    model that I have:

    1. Client <client_ipaddess, client_dynamic_port> sends a "connect"
    message to the well-known port of the server <server_ipaddress,
    well_known_server_port>.
    2. Server forks a child process and the connection is established
    between the child process <server_ipaddress, server_dynamic_port> and
    the client <client_ipaddress, client_dynamic_port>.
    3. The traffic will flow on the new connection between cleint and
    server.

    I want to make the initial connection request traffic going from
    various clients to the server as well as the actual client-to-server
    traffic to be made secure using SSH tunneling.

    It would seem to me that the port-forwarding featuin SSH is suitable
    for static ports. For dynamic ports, is there a way I can use the port
    forwarding feature easily or is there any other feature in SSH that I
    could use.

    I can think of a kludgy way of doing it:
    When the process gets the dynamic port from the OS, it could execute
    the "ssh -L .." shell command from the program to specify the dynamic
    port to be forwarded.
    It might work. I haven't tested it yet. But it just seems kludgy. Is
    there a better way of doing it?

    Thanks in advance.
    -Kishore.


  • Next message: Thomas Binder: "Re: Failed Password Error"

    Relevant Pages

    • Re: ipfw and nmap
      ... > even be correct but I have a bsd box that is simply providing me SSH ... add allow tcp from any to me 22 setup in via fxp0 keep-state ... Note too that there is nothing to prevent port scanners simply setting ... the 'SYN' flag in the probe packets they send to your server. ...
      (freebsd-questions)
    • Re: Remote Desktop directly to another computer on the network
      ... default port... ... And there is no reason for me to believe that ssh ... When I have a multibillion company I will use the key pair, ... WinSCP for that to access my home SSH server. ...
      (microsoft.public.windowsxp.work_remotely)
    • Re: need help for setting SSH Server for Windows XP
      ... In my windows firewall proper ports are opened. ... Changing from port 22 to ports 80, 443 also doesn't give any results. ... static LAN IP of the server PC. ... It is *NOT* a valid test to call the SSH server PC from another ...
      (microsoft.public.windowsxp.work_remotely)
    • Re: Port Forwarding -- Checking to be sure I understand it
      ... They run an ssh ... server and VNC service. ... If you want to run the tunnel over some port other than 22 (the ... restrictive firewalls that deny all incoming connections and block most ...
      (comp.security.ssh)
    • Re: Which shell / terminaltype for SSH Tectia for Windows?
      ... My remote Windows2003 server runs SSH Tectia 4.05 Server. ... That's the SMTP port, for email, not the port for SSH. ... the output from vim is not shown to me, ...
      (comp.security.ssh)