From nobody Tue Mar 22 14:37:00 2022 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 F141C1A1EFC1 for ; Tue, 22 Mar 2022 14:37:00 +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 4KNDb04L5wz4bfk for ; Tue, 22 Mar 2022 14:37:00 +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 7255510CFC for ; Tue, 22 Mar 2022 14:37:00 +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 22MEb0Ip013394 for ; Tue, 22 Mar 2022 14:37:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22MEb0SG013393 for bugs@FreeBSD.org; Tue, 22 Mar 2022 14:37:00 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 262718] [patch] ipsec.conf failing at boot time Date: Tue, 22 Mar 2022 14:37:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dinoex@FreeBSD.org 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 attachments.created 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647959820; 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=QEPBO8Mq0HQl15DaY0WrqybHmg4arcLP6smifir56yw=; b=oF7T/K5vkzoVj8rkMtIA7Ld6w/15ZWZp9nFyyPUtdVunWvBJeDx57qU3ls350E9WdM9rzD ZbtC/uhsj3JdE+lgJ4gqnwRKkzN4/5wlnB+YShV4oCv3cYWlNVtbHUpGs649Hvwk387CqV JP7xow+waFMZVOT3TMNKXIU3Bsk55t+Czfuw2vYcTsCzJ9QmODxGMAojZ3iWSRcLt1Wqb2 MBIBmtNkZyrpDo12W6hcE8P88sH7lEI1aIMk4g5FtcujJrFaBPjv8o84cb1RF7iX95+Bx9 opRk0HInZ+hdAtJCGVwUT+ckZWOVKjgshCQkGzg2W8DjSqTD8iYet8zb2wPmgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647959820; a=rsa-sha256; cv=none; b=lYMZto3j0ooCy0xfBY2ouZHa/9Hu7+Dp+CgpCbtWPSEr+kqOlk16tv4JUii8VkO+LxK9pu rHg0SefQAbajg9wmbCgu4vmfcebKhQL+Uivb8bxg4wNpSYhcfl0fhXNDH7r1pf7iXTHJVZ xbK7EAviZ8hed03PQDY37hV6kvrTx0n8dQyIGVYy+7egEHq/RG3Nn2z4klWCmWYGW0KvFR ti+yXWrQkGUReHDAhKcof86bWUF0mpH1B4tr+d+hBN334G8abalmKrCLFhB+NhmU7Cmsml /qAJD7hT2/O8bu2IHsuWzClRUB6NsjBslqkZodqFlmISvrbYP6qLf52kUZfq3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262718 Bug ID: 262718 Summary: [patch] ipsec.conf failing at boot time Product: Base System Version: 13.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: dinoex@FreeBSD.org Created attachment 232630 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232630&action= =3Dedit Suggested patch Setup: I run BGP with md5 passwords, using setkey and ipsec.conf. With FreeBSD-13 this configuration fail to work. from logfile: kernel: Feeding entropy: . kernel: Installing ipsec manual keys/policies. kernel: The result of line 1: Invalid argument. kernel: The result of line 2: Invalid argument. kernel: The result of line 3: Invalid argument. kernel: The result of line 4: Invalid argument. kernel: Loading kernel modules: /etc/ipsec.conf: add 185.XXX.XXX.15 185.XXX.XXX.130 tcp 0x1000 -A tcp-md5 "password"; add 185.XXX.XXX.130 185.XXX.XXX.15 tcp 0x1000 -A tcp-md5 "password"; add 185.XXX.XXX.15 185.XXX.XXX.129 tcp 0x1000 -A tcp-md5 "password"; add 185.XXX.XXX.129 185.XXX.XXX.15 tcp 0x1000 -A tcp-md5 "password"; /etc/rc.conf: ipsec_file=3D"/etc/ipsec.conf" ipsec_enable=3D"YES" kld_list=3D"netgraph tcpmd5 ng_ether ng_pppoe ng_socket ng_mppc ng_ppp ng_t= ee ng_tcpmss" # service -l | egrep 'ipsec|kld' ipsec kld kldxref Workaround after reboot I run: # /etc/rc.d/ipsec start Suggested fix: Change the Starting order. Patching /etc/rc.d/ipsec solves the problem: # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | egrep 'ipsec|kld' /etc/rc.d/kldxref /etc/rc.d/kld /etc/rc.d/ipsec start ipsec after --=20 You are receiving this mail because: You are the assignee for the bug.=