From owner-freebsd-stable@freebsd.org Thu Aug 27 19:24:34 2020 Return-Path: Delivered-To: freebsd-stable@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 512B23C0FD7 for ; Thu, 27 Aug 2020 19:24:34 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [128.127.146.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.norma.perm.ru", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bct2m3P1Hz4fDj for ; Thu, 27 Aug 2020 19:24:32 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from [192.168.243.9] ([192.168.243.9]) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTP id 07RJOsf7045769 for ; Fri, 28 Aug 2020 00:24:54 +0500 (+05) (envelope-from emz@norma.perm.ru) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=norma.perm.ru; s=key; t=1598556295; bh=JpCKfgxudh1+DJhGz+c5sf5I+qSrDxfJ7ZsU2B0K5+A=; h=Subject:To:References:From:Date:In-Reply-To; b=p4T7Nz575UjT+AckPfX0R/GSth9rF80Bzp6g3QIhVDLRoq+cMiq84TdQWZ3dbF9Hj imjTtEy2EoOFIMfwSwellXMVfyzA7NWZf60bQMmGBcvLoIk9f8tfOMK1fwkungbWwd 7b7K3j2n7ubw96hifN8JKNAMt2a8mtzA5djp4+pE= Subject: Re: running out of ports: every client port is used only once in outgoing connection To: freebsd-stable@freebsd.org References: From: "Eugene M. Zheganin" Message-ID: <03f97b02-8661-00e3-7375-66decf0a26ec@norma.perm.ru> Date: Fri, 28 Aug 2020 00:24:29 +0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: ru X-Rspamd-Queue-Id: 4Bct2m3P1Hz4fDj X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=norma.perm.ru header.s=key header.b=p4T7Nz57; dmarc=pass (policy=none) header.from=perm.ru; spf=pass (mx1.freebsd.org: domain of emz@norma.perm.ru designates 128.127.146.8 as permitted sender) smtp.mailfrom=emz@norma.perm.ru X-Spamd-Result: default: False [5.61 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[norma.perm.ru:s=key]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(0.00)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_SPAM_MEDIUM(0.99)[0.987]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; HFILTER_HELO_IP_A(1.00)[elf.hq.norma.perm.ru]; RBL_VIRUSFREE_BOTNET(2.00)[128.127.146.8:from]; DKIM_TRACE(0.00)[norma.perm.ru:+]; DMARC_POLICY_ALLOW(0.00)[perm.ru,none]; HFILTER_HELO_NORES_A_OR_MX(0.30)[elf.hq.norma.perm.ru]; NEURAL_SPAM_SHORT(0.39)[0.388]; NEURAL_SPAM_LONG(0.93)[0.930]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:57401, ipnet:128.127.146.0/24, country:RU]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2020 19:24:34 -0000 Hello, 27.08.2020 23:01, Eugene M. Zheganin wrote: > > And as soon as I'm switching to it from DNS RR I'm starting to get get > "Can't assign outgoing address when connecting to ...". The usual > approach would be to assign multiple IP aliases to the destination > backends, so I will get more of socket tuples. > So, seems like FreeBSD isn't reusing client ports out-of-the-box. > > Linux, on the other hand, does reuse ports for client connection, as > long as the socket tuple stays unique. How do I get the same behavior > on FreeBSD ? > > > Found this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=174087 and this: https://svnweb.freebsd.org/base?view=revision&revision=361228 How do I determine if the latter is merged into STABLE (is it ?) ? Thanks. Eugene.