From nobody Tue Sep 7 02:10:34 2021 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 75F0D17B609D; Tue, 7 Sep 2021 02:10:39 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H3TJG1h5nz3vDj; Tue, 7 Sep 2021 02:10:38 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lj1-x229.google.com with SMTP id i28so14030485ljm.7; Mon, 06 Sep 2021 19:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TcRDj/pZZjF5iUzB75eKnPaSQDJbMG4vzUgbNrAB840=; b=AsWDP4bcPXb7r4IhS2RSTMurT97ONuOZw0Lq/ns1dcUohKgzjMzlA4vRiJuNzn2Nwc OGTuThN3XIxSST81pybaHOHMO0ob3pHYyjsbfv0C4zH8pNkjGYujbY6dY/QBttgKar3H sujmfzciqWdr9u0DupBY2gyItnm2YGC/by2BTtpUaNRPxzva3evZV7qKPVIu4vWLNxQ7 NaX09SKYN/we4cXcnA5OHuwoIa8xaXxLcV2r5Ii7173WPi031klyuIx8cgp7SXbFqnA7 I8lvOVG7Fhn0Cy/w8kQIRG+21GqffmJ92Ee627h88fV+Zwr0Ep/drtlFuTFYnP1kWadZ h92g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TcRDj/pZZjF5iUzB75eKnPaSQDJbMG4vzUgbNrAB840=; b=ZupdL7d+QnQHG8nb7mCroYhDrTa9INWyOkkjTMQSOcofv9AWpTO8TjyDZ9FFMw8cpz n8qzzv+vY3dZAfJO7IFUHRKPlFkya0OquLnOi0NHgYsmvHnNld9RY8HZ0OKkUBw/9+Uj O3mnLEuMluEeAtsW4CIKxOPAPziA5fWR1EVDX8Pb745I8gfWjB4sClWjbQ5zM6D9tA4r sMUvAyP3py18XBBjMqpmdjFdIbEobuu1tSRjPmmc0NcMATQLthwHGpRp+Rl6EMDjlGWW 66Q94mlSICTPxY899xCYDUGUjldnP+pdvSRFqER2BsqZ1a8NUpaZrAWvIgYuiZ7DNdUc tG7g== X-Gm-Message-State: AOAM533l+qLyJmT2Y9kitTCw6ST3jjYpxrcRQHurpHY9t1sPg9k4OaY+ fceJYxjOTx3GbpUr4xflSKo= X-Google-Smtp-Source: ABdhPJy3yYLFqLmV6iHUS0FVjKiDcUjOJFpSp5LgJg/ncKbEziRhM+5tBgqZTIYMhPrbso56jIA5eg== X-Received: by 2002:a2e:9e4c:: with SMTP id g12mr12629407ljk.433.1630980636539; Mon, 06 Sep 2021 19:10:36 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id a27sm871266lfi.27.2021.09.06.19.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 19:10:36 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 7 Sep 2021 05:10:34 +0300 To: Michael Tuexen Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: TCP connection ignore RST Message-ID: <20210907051034.5669a02d@rimwks.local> In-Reply-To: <927CA9E9-AB74-443D-83A7-931325DB7686@lurchi.franken.de> References: <20210904023730.5eddd6fd@rimwks.local> <927CA9E9-AB74-443D-83A7-931325DB7686@lurchi.franken.de> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4H3TJG1h5nz3vDj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=AsWDP4bc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On Sat, 4 Sep 2021 13:19:52 +0200 Michael Tuexen wrote: > > On 4. Sep 2021, at 01:37, Rozhuk Ivan wrote: > >=20 > > Hi! > >=20 > >=20 > > I have strange case: FreeBSD 12.2 ignore TCP RST from windows host > > and continue retransmitting packets. sockstat show that socket > > connected even after many tcp rst packets received. > >=20 > > Any ideas how to fix it? =20 > Where is the trace taken? On the Windows side or on the FreeBSD side > or somewhere else? Could you provide the .pcap file? >=20 =46rom FreeBSD side. https://reviews.freebsd.org/D28142 e82353f84c58da9a5c38bd471a09936c16a5b6ea https://reviews.freebsd.org/D28143 d05d908d6d3c85479c84c707f931148439ae826b sysctl net.inet.tcp.tolerate_missing_ts=3D1 this fixes issue for me.