From owner-freebsd-questions@freebsd.org Fri Mar 3 17:28:39 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C88BCF7AC0 for ; Fri, 3 Mar 2017 17:28:39 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34A1510E8 for ; Fri, 3 Mar 2017 17:28:38 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [78.35.133.211] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1cjqzz-0008BQ-LN; Fri, 03 Mar 2017 18:28:11 +0100 Date: Fri, 3 Mar 2017 18:21:34 +0100 From: Fabian Keil To: Nagy =?UTF-8?B?TMOhc3psw7M=?= Zsolt Cc: freebsd-questions@freebsd.org Subject: Re: TCP connection stalled Message-ID: <20170303182134.106d613d@fabiankeil.de> In-Reply-To: <485311bf-1e19-b439-c569-b6230d264e16@shopzeus.com> References: <485311bf-1e19-b439-c569-b6230d264e16@shopzeus.com> Reply-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/rqgGIeJ=4oQfJwHrhNwpc6m"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 17:28:39 -0000 --Sig_/rqgGIeJ=4oQfJwHrhNwpc6m Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Nagy L=C3=A1szl=C3=B3 Zsolt wrote: > Hello, I have this setup: >=20 > Remote computer <---> Internet <-----> Gateway <----> NAT-ed local > network <---> Internal computer >=20 > The gateway is a 11.0-RELEASE-p8 running natd + ipfw. [...]=20 > If I try to copy something to a remote server with this command: >=20 > scp local_file user@remote_computer:~ >=20 > Then the following happens: the first few 100K data goes through > quickly, then the connection becomes stalled. I have tried different > remote computers on different ports, but the result is always the same. > I have also tried passive mode FTP instead of SCP with the same result: > stalled. >=20 > If I do the same from the internal computer behind NAT, then all uploads > and downloads are fast and responsive. The connection is stalled only > when I connect from the gateway (or to the gateway). (E.g. copy from > internal computer -> remote computer is fast and reliable.) [...] > But there was no effect at all. SCP and FTP connections are both > stalled. (I can send an example tcpdump if required, but I could find > nothing special in that.) >=20 > What else can cause this? What should I look for? You may be affected by this regression: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209680 You could check the "vmstat -z" output and try the patches. Fabian --Sig_/rqgGIeJ=4oQfJwHrhNwpc6m Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTKUNd6H/m3+ByGULIFiohV/3dUnQUCWLmmHwAKCRAFiohV/3dU nTgWAJ9jPvJvLzZVHhzq+kQToCl37p3r7wCfcMGkegwpmJ5J0AvzFTXXqUXVf0Y= =InJl -----END PGP SIGNATURE----- --Sig_/rqgGIeJ=4oQfJwHrhNwpc6m--