Date: Thu, 16 Jan 2020 22:53:05 +0700 From: Victor Sudakov <vas@sibptus.ru> To: Eugene Grosbein <eugen@grosbein.net> Cc: "Andrey V. Elsukov" <bu7cher@yandex.ru>, freebsd-net@freebsd.org, Michael Tuexen <tuexen@freebsd.org> Subject: Re: IPSec transport mode, mtu, fragmentation... Message-ID: <20200116155305.GA465@admin.sibptus.ru> In-Reply-To: <d263a709-63cf-7da5-1747-8a6791f6503f@grosbein.net> References: <20191220152314.GA55278@admin.sibptus.ru> <4cc83b85-dd30-8c0d-330e-aa549ce98c98@yandex.ru> <f9b7357e-ced1-4ce5-40d5-8e3dcad42442@yandex.ru> <d263a709-63cf-7da5-1747-8a6791f6503f@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eugene Grosbein wrote: >=20 > > I prepared the PoC patch that should fix the problem with TCP and > > transport mode IPsec. But I have not free time currently to properly > > test and debug it. It is only compile-tested. But If you want, you can > > try :) > > Currently only IPv4 support is implemented. > >=20 > > https://people.freebsd.org/~ae/ipsec_transport_mode_ctlinput.diff >=20 > In fact, I've faced this problem long time ago too and I work around it w= ith different approaches > like "ipfw tcp-setmss" (MSS adjust) or by using IPSec transport mode > with gif(4) interface removing DF bit out of encapsulated packets. >=20 > I was going to test your patch with my home router but the patch does not= apply to stable/11, at all. > Do you have time to adjust it to stable/11 ? 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. Why is it NOT broken this time? Both hosts are 12.1-RELEASE-p1. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJeIIbhAAoJEA2k8lmbXsY0AkkH/389HQVIP9uikJV3TMCeijtD 2+VALcn04wYpzJVReFIEYIdcE2hmxa+EusRdVA3pOFFSixWr/xmsH0+OeHvpZIlU ZxDqNccij/4d4RApuN1lR73wZTfJmIQPA4EPD6AHKLPlzYstGfUyDHJ/cVrIgVwD hMkWtyULpg/DzAbZ0E3asKY+o0dfgeLiPst/qNkLKo4C+o3zy8b2g/hOtH80+q+7 gsZNqSjqoBg9Qn8IG+7H5UcgbYjySR6jSHQMTrNenIyIKe5jn0VcESMJqsw4eWd0 qnNBCdQF5tbSENZzM+AaI2PCeww8HqF1P71J9ozOiSwzwhWLFH9W2m8sTzwC6ow= =EbVp -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200116155305.GA465>