Re: IP Lease



Tom Linden wrote:

but it only keeps that window alive, so I guess that the two sessions have
different IPs. Don't suppose there is any way of doing this?

BTW, If I submit as batch, how do I get the output to my terminal?


When host A connects to host B for say telnet, the connection will exist between a random port on host A to port 23 on Host B.

Netstat will show you existing connections on this host, the local and the remote ports as well as local and remote IP.

When you establish a second session, then a totally different connection is made from another random port on A to port 23 on B. The two are independant from each other.

If your script which did a show time every minute maintained the connecttion on that session, but at the same time, another session without the script failed, then it is quite likely an idle timeout.

Does the dying session's window disapear ? There might be some information in there such as "remote host terminated the connection", or "HITMAN: we are killing your process because it has been idle for x minutes".

If it is done at the tcpip level, you can take a look at:
TCPIP SHOW SERV SSH

By default, there is an inactiity timer of 5 minutes.

There is also a SET SERV SSH/PROTOCOL=PROBE_TIMER=x (seconds). This sends a probe packet to make the connection look active.

There is also SET SERV SSH/SOCKET=KEEPALIVE


Note that set SERVICE SSH/INACTIVITY=x minutes is not documented in help but is accepted by the CLI but doesn't appear to have immediate effect. Perhaps it requires restart of the service to take effect,
.



Relevant Pages

  • Re: Adding Rules for Blackberry ES to ISA 2000 - SOLVED
    ... I found that their connection actually initiated a connection on port ... any lan machine to any outside host:: allow host to ... Note that in order to get outbound bes to work on an isa server (when ...
    (microsoft.public.isaserver)
  • Re: Adding Rules for Blackberry ES to ISA 2000 - SOLVED
    ... I found that their connection actually initiated a connection on port ... any lan machine to any outside host:: allow host to ... Note that in order to get outbound bes to work on an isa server (when ...
    (microsoft.public.isaserver)
  • Re: setting up RD without a VPN connection ?
    ... Remote Desktop only needs TCP Port 3389. ... > The PC in Brazil (the host) is connected via radio internet connection. ... The client cannot connect to the host. ...
    (microsoft.public.windowsxp.work_remotely)
  • understanding chkrootkit: sshd section
    ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
    (comp.os.linux.security)
  • understanding chkrootkit: sshd section
    ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
    (comp.security.unix)