From nobody Sat Oct 14 19:57:34 2023 X-Original-To: bugs@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 4S7DgM4GwVz4xBfR for ; Sat, 14 Oct 2023 19:57:35 +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 4S7DgM1gZ0z4fHx for ; Sat, 14 Oct 2023 19:57:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697313455; a=rsa-sha256; cv=none; b=qvvKvLaYmVf3hzEYk0Zv+5+a2qJ9YBz7jeLPVG70ySFY+GJnuvil0lAmorqlaQCCyZTtMf 0JdlPLsPzfIzmvVlAs26dZnmUuPxVqQm5zeHssQqOajaofFrgiQTv02dy34RNlXy4DpeJ9 Kg9aYgKlwqrk5hLhg05sfxepsyUG7N+fmzBrtnUiUTjOdynPKXvhK/lSZaGXW2w/mWL/HR Dpz26JDhDsApatZkCAROBeLGGGCa/jpWcwClk4xm1Ozo0SSkiyLZO2hkvxF3PesKFktI6s JeyFbNjrT5NaE3VQOtvSkEAKuqoP6UouSQlMgl2thmzehYGQcYNjNlr59s1nEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697313455; 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; bh=Ml4eMAK/YiMKdnFKnxoiH6WeFsFzZCKeGa7EO4y+WgA=; b=Wj/vM2QzJR8rvh5b82UcK9SAx8uTCoQF2jkeFOUk/P8LUQ0fsXZnxP8pwQDRizv56LVuTX DDhOtUSu9tSRFK+EU9W0BEMIPdkn8vS4gDG+BqjDIfzHdn6zw3XHJd70cyk/2OaR7sKW+b uK2H8/EvIK+oChMjfueHY1bHoo2AH9IVziCdMBpXgwRusWVl6hU2COIN5baSYrqhgdqCwr 2Bg3HaKVqlYuCfHpueawZMM+TwfLGlFXMYGC8eYbJkbJgrKMyCSs8uYHExwQwoq011WlGB c6ufYTXKJPNtE5v/65KlJbeCdLKFTbVSwVeVm5QECY5Hv8V6RlbrGv8EFi+IxA== 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 4S7DgM0T1wzjpN for ; Sat, 14 Oct 2023 19:57:35 +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 39EJvZ1g037903 for ; Sat, 14 Oct 2023 19:57:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39EJvZdJ037902 for bugs@FreeBSD.org; Sat, 14 Oct 2023 19:57:35 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: bugs@FreeBSD.org Subject: [Bug 274469] if_ipsec cannot handle multiple connections from same reqid Date: Sat, 14 Oct 2023 19:57:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ozkan.kirik@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274469 Bug ID: 274469 Summary: if_ipsec cannot handle multiple connections from same reqid Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ozkan.kirik@gmail.com On Linux, strongswan can assign unique if_id for each incoming connection belongs to same reqid (phase2) definition. By the way, you can create xfrm interface for each incoming CHILD_SA using up/down scripts. But on FreeBSD, only reqid could be used for if_ipsec creation. It will be perfect if it could support if_id.=20 The problem On FreeBSD: All the incoming connections gets SAME reqid accord= ing to the scenario and config given below. By the way, we need something like if_id in Linux. I tried setting reqid =3D 0 on swanctl.conf to assign it dynamically. But it takes only one reqid value and all incoming connections use same reqid. So = that we cannot seperate interfaces from each other. The usage scenario is explained below: - Host A is responder, which accepts multiple roadwarriors from single conn/child defination. - Remote ID is defined as "*.local" - Host B is initiator using Local ID "hostB.local" - Host C is initiator using Local ID "hostC.local" - There are too many initiators like this. - updown script on Host A should create a new if_ipsec for each initiator. - I want to create different if_ipsec interfaces for each remote host witho= ut defining statically in swanctl.conf. - It's possible in linux. Example strongswan config for Host A: responder { local_addrs =3D %any remote_addrs =3D %any pools =3D vip_pool local { id =3D responder.local auth =3D psk=20 } remote { id =3D *.local auth =3D psk=20 } children { phase2 { local_ts =3D 169.254.255.1 remote_ts =3D 0.0.0.0/0 updown =3D /scripts/updown.sh if_id_in =3D %unique if_id_out =3D %unique esp_proposals =3D aes128gcm8-prfmd5-modp1024 mode =3D tunnel }=20=20=20 } version =3D 2=20 proposals =3D aes128gcm8-prfmd5-modp1024 } --------------------------- --=20 You are receiving this mail because: You are the assignee for the bug.=