From owner-freebsd-hackers Tue Nov 17 14:36:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA29979 for freebsd-hackers-outgoing; Tue, 17 Nov 1998 14:36:26 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mailmtx.acnet.net (mailmtx.acnet.net [170.76.16.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29973 for ; Tue, 17 Nov 1998 14:36:20 -0800 (PST) (envelope-from denp@acnet.net) Received: from denpmfe.acnet.net ([170.76.16.29]) by mailmtx.acnet.net (Post.Office MTA v3.5.3 release 223 ID# 0-52476U50000L50000S0V35) with SMTP id net for ; Tue, 17 Nov 1998 16:35:52 -0600 X-Sender: denp@mailmtx.acnet.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.1 Date: Tue, 17 Nov 1998 16:36:12 -0600 To: freebsd-hackers@FreeBSD.ORG From: Ivan Villalobos Subject: Telnetd keepalive question... Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <19981117223552.AAA600@mailmtx.acnet.net@denpmfe.acnet.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi guys... I have something that keeps diving me nuts and I still can not find an answer... I have a FreeBSD R30.0 inside a network protected by a firewall. Such firewall is configured to expire TCP sessions after 15 min. of inactivity. When I login to the FreeBSD box, I frequently forget the session and -obviously- the firewall expires (terminate) my session. Neither my Win95 telnet program or the telnetd realize this really soon enough so I have to manually kill the telnetd session. I need to know how to tweak this parameters. As I understand it, I have three options: 1.- Tweak the firewall's TCP timeout. 2.- Tweak FreeBSD's tcp.keepalives. 3.- Tweak telnetd's keepalives. I do not want to go for options 1 & 2 since it would affect not only my session but all my traffic. So I figured that the right thing to do is to tweak telnetd's keepalive. Now, does anybody know what the "1" means in this line?, taken from /usr/src/libexec/telnetd/telnetd.c int keepalive = 1; I also figured this would be the line to mess with, right? Could anyone, please please please shed some light here? Could you please answer (if any) to denp@acnet.net Best Regards... Ivan Villalobos Ashton Communications Corp. NOC McAllen, TX. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message