From owner-freebsd-questions@freebsd.org Mon May 27 17:39:55 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11A6815A6B06 for ; Mon, 27 May 2019 17:39:55 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 38B4976D28 for ; Mon, 27 May 2019 17:39:54 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) by bucksport.safeport.com (8.14.5/8.14.5) with ESMTP id x4RHNrDn065686 for ; Mon, 27 May 2019 13:23:53 -0400 (EDT) (envelope-from doug@safeport.com) Date: Mon, 27 May 2019 13:23:53 -0400 (EDT) From: Doug Denault To: freebsd-questions@FreeBSD.ORG Subject: ssh timeout question Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (bucksport.safeport.com [198.74.231.101]); Mon, 27 May 2019 13:23:53 -0400 (EDT) X-Rspamd-Queue-Id: 38B4976D28 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of doug@safeport.com designates 198.74.231.101 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [2.00 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:198.74.231.101]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_SPAM_MEDIUM(0.00)[0.000,0]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[safeport.com]; NEURAL_SPAM_SHORT(0.80)[0.802,0]; MX_GOOD(-0.01)[bucksport.safeport.com]; NEURAL_SPAM_LONG(0.78)[0.777,0]; RCVD_COUNT_ONE(0.00)[1]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11288, ipnet:198.74.228.0/22, country:US]; IP_SCORE(0.53)[asn: 11288(2.72), country: US(-0.06)]; ONCE_RECEIVED(0.10)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2019 17:39:55 -0000 I have broadband service from three different providers: Verizon (MD), Spectrum (FL) and Shentel (VA) so I can say with certainty that this is a function of the modem. ssh connections FreeBSD <---> FreeBSD do not time out. The timeouts appear to be a function of either NAT, DHCP or the number of active connections the router can maintain. My current question is with Verizon FIOS using the (latest??) modem AC1750 Wi-Fi (G1100). I have a home connection (100 mbps) and a business connection (150 mbps) both have the same characteristics. On Verizon (biz) I currently have 24 active and inactive DHCP connections. I do not appear to be hitting any limit here. Connections do not time out except on any ssh connection running pine. The last time I checked pine it does not make any imap requests except when checking for new mail. I'm using the default (150 secs). The other providers modems timeout connections so when I could not find a keepalive setting that worked, I wrote a script to print a character every so often (300 secs works for me). Verizon happily times out pine connections in 2-3 hours. My keepalive script has no effect. I am not sure of the minimum but around 3 hours seems to be the max. Verizon of course says the do not time out connections. Probably true for their network. Not for the modem IMO. Anyone with similar experience or know workarounds? _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277