From nobody Tue Feb 1 17:53:17 2022 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 18D1F19B9B62 for ; Tue, 1 Feb 2022 17:53:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JpCG54txRz3hT1 for ; Tue, 1 Feb 2022 17:53:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 54B0D153B2 for ; Tue, 1 Feb 2022 17:53:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 211HrHL3082270 for ; Tue, 1 Feb 2022 17:53:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 211HrHME082269 for jail@FreeBSD.org; Tue, 1 Feb 2022 17:53:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 255685] PF: JAIL: fail to connect from jail to jail service when pf enabled Date: Tue, 01 Feb 2022 17:53:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsdbugzilla@agneau.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643737997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OevjCyH1oVR6vtzxgWX1eQj72tlSjfsxlYF8qx55YRE=; b=kbM9ta3YzzgOsV0w1551yEQtySd2GDYW2HC3VMhHiC378CHt5siJ4QrV4fI784vQ+ETT7n rua9g0na7gq3U1ZybvMJrGWmf17NiFbdi2MVGEoqT8tdhD1VL1K7KTrYeftnkJdK1HUCEk FxFj5IMlI27MgNLXqLBcFl6+AaEFuc7mNT8L4WZVE9q8UCM9WX5LMlMqdtBnVd4C7GYFne FpabtpyDRt4TYftaKsPMQOCyNF04ROKCZ4mH2yIdCeh8YdJsI/vcfWf/0/p8VyAuYUanWW 3axvMbazB9JHPB/K+veFzs8JRcErznHgOq6QZ/xaTtk7XG2VapmHWAkRuZHGYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643737997; a=rsa-sha256; cv=none; b=SiCuk8biQKBPsugDfzR262hGqrGyhrPsHRuwG6anYcid87rzU7WhKffJwOIL4WugD1utLj ZSCZpKjW60Ff3TVaHnfeLuuu0vMYQk/rJI1Cf73iEHeP9F1B6hPUk+kJq7NLmA457gtZK7 sn/VDbPdBOf+LVEmWulIcoYvOj9AwL9QZllGKH1HvJjdM0m4jbW1wBbPvNts57z0nMI73c a+0bxXc3P402D/3ibuSlEd/gq5nGdIngt1BiBnXiKy9sQF/LQD2UXVBftNM2660xSPjUip GU+v2SkliVQL0j4zVkuol8ttdXilZ6BI4lbWLDJcAJvmN8WwTL8Tz38LYFRo8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255685 --- Comment #6 from Laurent Frigault --- (In reply to Laurent Frigault from comment #5) man ifconfig still says: .. alias Establish an additional network address for this interface. T= his is sometimes useful when changing network numbers, and one wis= hes to accept packets addressed to the old interface. If the addr= ess is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. but it looks like since 13.0 we can now add aliases with non /32 mask even= if there is already an ip with the same non /32 subnet and this works with jail ips too. example: host configuration: ifconfig_bge0_alias0=3D"inet 192.168.249.240 netmask 255.255.255.128" jail configuration: ip4.addr +=3D "192.168.249.247/25"; # netstat -rn |fgrep 192.168.=20=20=20=20 192.168.249.128/25 link#1 U bge0 192.168.249.240 link#1 UHS lo0 192.168.249.247 link#1 UHS lo0 lo0 host routes are back and the 2 ips can talk to each other via lo0 This change may ne related to https://www.freebsd.org/releases/13.0R/relnot= es/ ... Duplicate routes installation issue for /32 or /128 interface aliases has b= een fixed. 81728a538d24 ... maybe the ifconfig manual page should be updated to remove=20 "Usually 0xffffffff is most appropriate" from the alias item --=20 You are receiving this mail because: You are the assignee for the bug.=