Problems dropping telnet sessions
Hello all, I recently traded in my Solaris 8 (x86) install for SuSE Linux 7.3 and now am having problems keeping telnet sessions open for extended periods of time. Let me give a little background on what I use this box for. Basically my linux box is used as a workstation for system monitoring. I usually have 6 to 8 separate desktops which I use to separate our different Unix environments (i.e. development, test, production ...). I may run HP Openview client on one desktop to monitor alerts and keep telnet sessions open on other desktops in order to quickly access a given server. Until recently I've been using Solaris 8 (x86) with no problems, but decided I wanted to get comfortable with linux and prove to my boss that there are many nice things we can do with linux that we can't do with Solaris. I installed SuSe 7.3 (2.4.10 kernel) and since have had troubles keeping telnet connections alive. What I mean by that is, when I leave the linux workstation inactive for a period of time (let's say 30 minutes), my telnet sessions are disconnected with the message "Connection closed by foreign host". I can find no messages in /var/adm/messages (on the Solaris side) or /var/log/messages (on the linux side). Anyone have this type of problem or more importantly, can someone point me in the right direction? Thanks. Matthew
On Tue, Apr 02, 2002 at 09:36:00AM -0500, Simoncini, Matthew wrote:
Anyone have this type of problem or more importantly, can someone point me in the right direction?
My first two thoughts are: iptables times out your connection for some reason, or the remote side has an autologout value set. Is there a firewall setup on your box? You can do "iptables -L" to find out. As for autologout, I would think this would have affected you before, but it's something to rule out anyway. What shell are you using on the remote machines? If it's a csh variant, run "echo $autologout" and see what it comes back with. If it comes back with a defined non-0 value, that is a likely cause of your problem. Run "set autologout=0" and see if that fixes your problem. -- Randomly Generated Tagline: "Note that if I can get you to \"su and say\" something just by asking, you have a very serious security problem on your system and you should look into it." (By Paul Vixie, vixie-cron 3.0.1 installation notes)
Sounds like a firewall problem. Just for fun you might try lowering your keepalive time to say 29 min, or even lower just for testing, and see if that helps. The default is 2 hours (7200 sec) or 14400 half sec on bsd) cat /proc/sys/net/ipv4/tcp_keepalive_time 7200 you can use sysctl or just echo the new value in echo 1740 > /proc/sys/net/ipv4/tcp_keepalive_time or sudo /sbin/sysctl -w net.ipv4.tcp_keepalive_time=1740 Anyone know if this works for clients as well as daemons? Jason On Tue, 2002-04-02 at 09:36, Simoncini, Matthew wrote:
Hello all,
I recently traded in my Solaris 8 (x86) install for SuSE Linux 7.3 and now am having problems keeping telnet sessions open for extended periods of time. Let me give a little background on what I use this box for.
Basically my linux box is used as a workstation for system monitoring. I usually have 6 to 8 separate desktops which I use to separate our different Unix environments (i.e. development, test, production ...). I may run HP Openview client on one desktop to monitor alerts and keep telnet sessions open on other desktops in order to quickly access a given server.
Until recently I've been using Solaris 8 (x86) with no problems, but decided I wanted to get comfortable with linux and prove to my boss that there are many nice things we can do with linux that we can't do with Solaris. I installed SuSe 7.3 (2.4.10 kernel) and since have had troubles keeping telnet connections alive. What I mean by that is, when I leave the linux workstation inactive for a period of time (let's say 30 minutes), my telnet sessions are disconnected with the message "Connection closed by foreign host". I can find no messages in /var/adm/messages (on the Solaris side) or /var/log/messages (on the linux side).
Anyone have this type of problem or more importantly, can someone point me in the right direction?
Thanks.
Matthew _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (3)
-
Jason Calvert
-
Simoncini, Matthew
-
Theo Van Dinter