From owner-freebsd-ipfw@freebsd.org Thu Aug 31 10:06:05 2017 Return-Path: Delivered-To: freebsd-ipfw@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 DEFECE1AE74 for ; Thu, 31 Aug 2017 10:06:05 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward1j.cmail.yandex.net (forward1j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 775B571951 for ; Thu, 31 Aug 2017 10:06:05 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [95.108.130.60]) by forward1j.cmail.yandex.net (Yandex) with ESMTP id 9C24320ED8; Thu, 31 Aug 2017 13:05:52 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id C263B3EC0C9F; Thu, 31 Aug 2017 13:05:51 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vUMJ7kVQRZ-5oHCWO4f; Thu, 31 Aug 2017 13:05:50 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1504173950; bh=nkjVo4XR4BsgQxoR7dHWq+9oaT3DmydZN0vJlBW5wYE=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=oNXXG8qJ0zfo60o3i7nl68GFhkeYx9ODPE79jHRDrnqQlmqoGmXGw+ZJ9Az6xupPX JltecJlcSWzi/jop0sTH5l/0IhgUx8wJto2L9AHVCAwyLa+gafjU4OHX94eYJBRon3 EEYygKMilL6y3b5bgchWupZCufQIgvYkW0fay89I= Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: ipfw kernel NAT performance much worse in 11-Stable than 10-Stable To: Graham Menhennitt , freebsd-ipfw@freebsd.org References: From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Message-ID: Date: Thu, 31 Aug 2017 13:01:43 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r4FUPnAEhXLAlnLv6E7XOGH8xCDOrltab" X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 10:06:06 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --r4FUPnAEhXLAlnLv6E7XOGH8xCDOrltab Content-Type: multipart/mixed; boundary="hbIqiIrExfMgihIbAfvQxsujbn9oxOKM7"; protected-headers="v1" From: "Andrey V. Elsukov" To: Graham Menhennitt , freebsd-ipfw@freebsd.org Message-ID: Subject: Re: ipfw kernel NAT performance much worse in 11-Stable than 10-Stable References: In-Reply-To: --hbIqiIrExfMgihIbAfvQxsujbn9oxOKM7 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 29.08.2017 12:33, Graham Menhennitt wrote: > However, the performance on the 11-Stable box is much worse. For file > transfers I get about 1/10th the speed. Incoming TLS connections often > fail to establish. Looking (from outside the box) at the interface in > Wireshark shows lots of packets being retransmitted. >=20 > This appears to be due to the NAT rule. If I remove that, the > performance jumps up to be approximately the same as the 10-Stable box.= > The rules are pretty simple: > nat 1 config if igb1 deny_in same_ports redirect_port udp > XXX.XXX.XXX.XXX:YYYY YYYY > nat 1 ip4 from any to any via igb1 >=20 > I can provide the full set of rules if needed, but I think only those > two lines are relevant. >=20 > Does anybody please have any ideas on this, please? Can you show the output of `ifconfig igb1 | grep flags` on stable/10 and stable/11? --=20 WBR, Andrey V. Elsukov --hbIqiIrExfMgihIbAfvQxsujbn9oxOKM7-- --r4FUPnAEhXLAlnLv6E7XOGH8xCDOrltab Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlmn3ocACgkQAcXqBBDI oXolXQgAqDqR0ZYF98z8E8mFCKxnBWyn7YzSbDkuWuy/2Fk+7F+tlACQaWnuZcoY s/K3pbAWVochDXjobDPN1XQT/kdGtaVV8xv3xVHhKafj6UIyTueX6Ez2FEnrFi7U Ukdi3RwhkM07Nsb9+hSSNljmPkdhpioCWKWqCRSE5DEXm+k4sO69cayxI9YKHord M5g0n1/kh2RS06xyXYI0sXylMXPxqSDZZAP+elkL3gO6uUMCkzZzDcqYWASCC9ur GY+NXxqbqyXY1aJAPP6rLcQUNh4YRoTQ5z4POOD9QjzhmnxPV5CZPdhlba98UXYV 4y45Ti0fvO+qeGqqjEpWJiVfIwZddw== =xh9L -----END PGP SIGNATURE----- --r4FUPnAEhXLAlnLv6E7XOGH8xCDOrltab--