Discussion:
Telnet Operation Timed Out
Holtor
2004-04-14 11:36:53 UTC
Permalink
Hello All,

How can I change the default telnet timeout value when connecting to remote hosts?

For example:

# time telnet -N 1.2.3.4
Trying 1.2.3.4...
telnet: connect to address 1.2.3.4: Operation timed out
telnet: Unable to connect to remote host
0.000u 0.008s 1:15.01 0.0% 0+0k 1+0io 6pf+0w

The timeout seems to be 75 sec, how can we make this 15 or 30 seconds? I have been searching
google to no avail but did get hints that this might be a TCP default of somekind.

If anyone has any idea please do e-mail back but include my in the reply as I'm not yet subscribed
to the list.

Thanks,

Holt G.





__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
Nikos Vassiliadis
2004-04-14 12:13:58 UTC
Permalink
You can change the non-established-connection-timeout
using sysctl net.inet.tcp.keepinit=value. The default is
75000, at least on FreeBSD-4.9, which is probably a lot.

Cheers, NikV
Post by Holtor
Hello All,
How can I change the default telnet timeout value when connecting to remote hosts?
# time telnet -N 1.2.3.4
Trying 1.2.3.4...
telnet: connect to address 1.2.3.4: Operation timed out
telnet: Unable to connect to remote host
0.000u 0.008s 1:15.01 0.0% 0+0k 1+0io 6pf+0w
The timeout seems to be 75 sec, how can we make this 15 or 30 seconds? I
have been searching google to no avail but did get hints that this might be
a TCP default of somekind.
If anyone has any idea please do e-mail back but include my in the reply as
I'm not yet subscribed to the list.
Thanks,
Holt G.
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
Holtor
2004-04-14 17:55:22 UTC
Permalink
Nikos,

Thank you so much! The value is not in seconds but in milliseconds (wierd?). I set it to 10000 ms
which gave me a 10 second timeout however this is system-wide and I dont want to break things.

Does anyone know how to do it for just this specific telnet session? Perhaps there's a keepinit
rule in ipfw. Any ideas? Tia

Holt
Post by Nikos Vassiliadis
You can change the non-established-connection-timeout
using sysctl net.inet.tcp.keepinit=value. The default is
75000, at least on FreeBSD-4.9, which is probably a lot.
Cheers, NikV
Post by Holtor
Hello All,
How can I change the default telnet timeout value when connecting to remote hosts?
# time telnet -N 1.2.3.4
Trying 1.2.3.4...
telnet: connect to address 1.2.3.4: Operation timed out
telnet: Unable to connect to remote host
0.000u 0.008s 1:15.01 0.0% 0+0k 1+0io 6pf+0w
The timeout seems to be 75 sec, how can we make this 15 or 30 seconds? I
have been searching google to no avail but did get hints that this might be
a TCP default of somekind.
If anyone has any idea please do e-mail back but include my in the reply as
I'm not yet subscribed to the list.
Thanks,
Holt G.
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
Nikos Vassiliadis
2004-04-16 08:15:29 UTC
Permalink
Yes it was a good question, and my connections timeout
faster than before. I don't think you can do something like
that with ipfw. But I might be wrong, Perhaps, you can find
a telnet client that suits your needs. BTW I think an overall
TCP connection timeout set to 10 seconds is a good idea.
But then again you might have problems with overloaded
sites. That would be very rare, though.

Cheers, NikV
Post by Holtor
Nikos,
Thank you so much! The value is not in seconds but in milliseconds
(wierd?). I set it to 10000 ms which gave me a 10 second timeout however
this is system-wide and I dont want to break things.
Does anyone know how to do it for just this specific telnet session?
Perhaps there's a keepinit rule in ipfw. Any ideas? Tia
Holt
Remko Lodder
2004-04-14 12:19:31 UTC
Permalink
Post by Holtor
The timeout seems to be 75 sec, how can we make this 15 or 30 seconds? I have been searching
google to no avail but did get hints that this might be a TCP default of somekind.
IMHO it's TCP, nothing to do with "telnet" itself,

Perhaps you can use a sysctl command to extend the tcp timeout value. (I
just looked but i could not find one that should do the job.)
but that might also tell one that tcp values are default, a timeout
always occurs in x seconds (where x is staticly defined).

HTH,
Post by Holtor
If anyone has any idea please do e-mail back but include my in the reply as I'm not yet subscribed
to the list.
Subscribe and learn :-)
Post by Holtor
Thanks,
Holt G.
--
Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl A Dutch community for helping newcomers on the
hackerscene
Continue reading on narkive:
Loading...