From owner-freebsd-net@freebsd.org Thu Jan 16 16:07:48 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 13CA21ED955 for ; Thu, 16 Jan 2020 16:07:48 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (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 47z8H700hvz4DXn; Thu, 16 Jan 2020 16:07:46 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=QUHR8sTewZno43rtz5dolTb6nH60Kl4RAuPlv0yuZVE=; b=ZGzCfP39r+A15LDiZZZmQrYfZ+ 0ZKFufRHWUkWKe2j4S0GUBQra4OKqHhEa0yThWKM6UYCqVLb6leyBScWJEkCT8quxaQoEU3JAh9g0 ILBa1XmZKiJj+iQJ1ZaSIHhDXAJn8k1DnkKGYGfmEMIlokZmWtIvX6FFpNPx6BiDHq9o=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1is7gP-0000Q0-At; Thu, 16 Jan 2020 23:07:45 +0700 Date: Thu, 16 Jan 2020 23:07:45 +0700 From: Victor Sudakov To: Eugene Grosbein Cc: freebsd-net@freebsd.org, "Andrey V. Elsukov" , Michael Tuexen Subject: Re: IPSec transport mode, mtu, fragmentation... Message-ID: <20200116160745.GA1356@admin.sibptus.ru> References: <20191220152314.GA55278@admin.sibptus.ru> <4cc83b85-dd30-8c0d-330e-aa549ce98c98@yandex.ru> <20200116155305.GA465@admin.sibptus.ru> <55f7bafa-24c4-9810-0d21-f82cb332ee2d@grosbein.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <55f7bafa-24c4-9810-0d21-f82cb332ee2d@grosbein.net> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 47z8H700hvz4DXn X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=ZGzCfP39; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.41 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; IP_SCORE(-3.31)[ip: (-9.89), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.69), country: US(-0.05)]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2020 16:07:48 -0000 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eugene Grosbein wrote: >=20 > > What beats me is that I cannot reproduce this problem in bhyve. In this > > packet dump: http://admin.sibptus.ru/~vas/ipsec1.pcap.gz I'm scp-ing a > > 50M file from 192.168.246.10 (bhyve guest) to 192.168.246.1 (bhyve > > host), and I see no fragments, and the largets packet is 1466 bytes, and > > the scp never stalls nor fails. > >=20 > > Why is it NOT broken this time? > >=20 > > Both hosts are 12.1-RELEASE-p1. >=20 > I could not reproduce the problem with unpatched recent stable/11, either= :-) Is there a way to view the MSS in the TCP segments before encryption or after decryption? I want to compare them in situations with IPSec enabled and disabled. I've never been able to see anything in "tcpdump -i enc0", probably it cannot do transport mode IPSec because the man page talks about "outer and inner header." --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJeIIpRAAoJEA2k8lmbXsY04SwIAKsORwXhKl8DLH9MpRduWbyt 032Y5dxP+yMedCWQGJDSVg907WyGXJ3Gs8FsnGf1TPQfprNn9S+IpC9KjH1QwaB9 njC3Cie7mIRIosM5RUymgRtV4AIQqB2t1ifIv54ogkeukNyXYIk+Hrrm7L4+jtDu NncKCpa9dgwaM/gNroSsLSdszVnXFbp4YS3qBSUqv1jVEnjqDw4kKpRs4cA0wZv2 cCqSViGU2D9W3s8u/ueXntDuivTNXGVLENf604hvQCIxfUuavcuE7MDEPO1ffISY CCn7EKsEWjXp5iYNq5uggQ7bN+I4ZC9mmxULXtZtI2A17WJou26jnqDGE945Vrw= =xff3 -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--