From owner-freebsd-net@freebsd.org Wed Jun 26 12:20:46 2019 Return-Path: Delivered-To: freebsd-net@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 11E4215C7062 for ; Wed, 26 Jun 2019 12:20:46 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (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 037536BF68 for ; Wed, 26 Jun 2019 12:20:44 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id x5QCKg5C072041; Wed, 26 Jun 2019 14:20:42 +0200 (CEST) Received: from [217.29.44.222] ([217.29.44.222]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id x5QCKgup078883; Wed, 26 Jun 2019 14:20:42 +0200 (CEST) (envelope-from hausen@punkt.de) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: IPFW NAT64 changed 11.2 --> 11.3? From: "Patrick M. Hausen" In-Reply-To: Date: Wed, 26 Jun 2019 14:20:41 +0200 Cc: FreeBSD Net , mops@punkt.de Content-Transfer-Encoding: quoted-printable Message-Id: References: <950200A8-6D36-46FE-B0DD-BA6EA860FEB7@punkt.de> <71dacccb-2500-6d7e-c890-2733d15fbbe5@yandex.ru> <76d0fb6a-28cb-4411-acb0-12f9ebe9b1f0@yandex.ru> To: "Andrey V. Elsukov" X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 037536BF68 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of hausen@punkt.de designates 217.29.33.131 as permitted sender) smtp.mailfrom=hausen@punkt.de X-Spamd-Result: default: False [-1.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:217.29.32.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[punkt.de]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.994,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mailin.pluspunkthosting.de]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; RCVD_IN_DNSWL_NONE(0.00)[131.33.29.217.list.dnswl.org : 127.0.10.0]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_TO(0.00)[yandex.ru]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.18)[ipnet: 217.29.32.0/20(-0.49), asn: 16188(-0.39), country: DE(-0.01)] 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: Wed, 26 Jun 2019 12:20:46 -0000 Hi all, first, for completeness: > So (3rd line) the SYN/ACK arrives with correct IPv4 addresses then = get=E2=80=99s > forwarded with a source address of=20 >=20 > :200:0:50:e689:9765:7085 instead of 64:ff9b::9765:7085 That looks like random garbage due to an uninitialized struct in6_addr. > Then we have another SYN/ACK (retransmit, identical sequence number = and ACK) > forwarded with yet another source address: >=20 > ::151.101.112.133 And on the second turn the same place probably has been zeroed, because = that is the correct IPv4 address with ::/96 attached in front. I didn=E2=80=99t= catch that at first. But the =E2=80=9Einternal=E2=80=9C IPv6-only system expects = NAT64, not v4-compatible ... Second, Andrey=E2=80=99s patch adds the missing initialization. And yes, = it is working. :-) Kind regards, Patrick --=20 punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling