From owner-freebsd-questions@FreeBSD.ORG Sun Aug 10 06:51:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B2DF37B401 for ; Sun, 10 Aug 2003 06:51:56 -0700 (PDT) Received: from daimi.au.dk (daimi.au.dk [130.225.16.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3D7743F3F for ; Sun, 10 Aug 2003 06:51:54 -0700 (PDT) (envelope-from djn@daimi.au.dk) Received: from zits (localhost [127.0.0.1]) by daimi.au.dk (8.11.7/8.11.7) with ESMTP id h7ADpq907121 for ; Sun, 10 Aug 2003 15:51:52 +0200 From: Daniel Nielsen To: freebsd-questions@freebsd.org Date: Sun, 10 Aug 2003 15:52:26 +0200 User-Agent: KMail/1.5.3 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308101552.26600.djn@daimi.au.dk> X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) Subject: Re: tcp keepalive? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Aug 2003 13:51:56 -0000 On Sunday 10 August 2003 15:16, Yonatan Bokovza wrote: > > -----Original Message----- > > From: Daniel Nielsen [mailto:djn@daimi.au.dk] > > Sent: Sunday, August 10, 2003 16:04 > > To: freebsd-questions@freebsd.org > > Subject: tcp keepalive? > > > > > > Hi. > > > > I'm behind a NAT (over which I have no control), And it seems > > to kill idle tcp > > connections quite fast. Is there anyway to make freeBSD 5.1 send tcp > > keepalives with smaller intervals? > > > > It was possible in linux with sysctl > > net/ipv4/tcp_keepalive_time=300... > > In freeBSD I have not been able to locate the equivalent > > option. Any help is > > appreciated. > > net.inet.tcp.keepintvl > > more info at src/sys/netinet/tcp_timer.c That did the job. Thanks /Daniel -- There are no great men, only great challenges that ordinary men are forced by circumstances to meet. -- Admiral William Halsey