From owner-freebsd-net@freebsd.org Fri Aug 24 11:16:17 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D16B810874D8 for ; Fri, 24 Aug 2018 11:16:17 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 729DA82111 for ; Fri, 24 Aug 2018 11:16:17 +0000 (UTC) (envelope-from hausen@punkt.de) Received: by mailman.ysv.freebsd.org (Postfix) id 3749610874D7; Fri, 24 Aug 2018 11:16:17 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2611710874D6 for ; Fri, 24 Aug 2018 11:16:17 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A236982110 for ; Fri, 24 Aug 2018 11:16:16 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate1.intern.punkt.de with ESMTP id w7OBGE3W008556; Fri, 24 Aug 2018 13:16:14 +0200 (CEST) Received: from [217.29.44.49] ([217.29.44.49]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id w7OBGEgk002159; Fri, 24 Aug 2018 13:16:14 +0200 (CEST) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_1B038F99-AF79-4006-91DB-ED4638DC7A86"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: sysctl for carp and pfsync on boot Date: Fri, 24 Aug 2018 13:16:13 +0200 In-Reply-To: <6093770.EXnXsF7aq0@energia> Cc: net@freebsd.org To: Kajetan Staszkiewicz References: <34887302.jQ4kTzBLMc@energia> <6093770.EXnXsF7aq0@energia> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2018 11:16:18 -0000 --Apple-Mail=_1B038F99-AF79-4006-91DB-ED4638DC7A86 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi! > Am 24.08.2018 um 12:43 schrieb Kajetan Staszkiewicz = : >=20 > On Wednesday, 22 August 2018 17:11:59 CEST Patrick M. Hausen wrote: >> Hi all, >>=20 >>> Am 22.08.2018 um 17:00 schrieb Kajetan Staszkiewicz >>> : Is there a preferred way to configure = sysctls >>> for modules loaded from kld_list? >>=20 >> We found the same problem in our setup making extensive use of = if_bridge. >>=20 >> Now we simply load that module early via loader.conf - all sysctls = available >> right away. >=20 > I'm pretty sure this did not work for me, not for pfsync module at = least. > Where did you put your sysctls? /boot/loader.conf? Maybe order of = modules > being loaded matters? Like pfsync loaded before carp maybe. Modules that you need at boot time go into /boot/loader.conf. Sysctl go into /etc/sysctl.conf. > Nevertheless this looks like a bug for me. Hackery with bootloader = does not > seem like a real solution. There might be good reasons to not load = modules at > boot. This is not hackery, IMHO. When I need a module in production, why would = I not want to load it at boot? The technical background is that if the module is not loaded, the = sysctls are simply not there. The MIB (so to speak) comes with the kernel subsystem that is = responsible for it. HTH, Patrick -- punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling --Apple-Mail=_1B038F99-AF79-4006-91DB-ED4638DC7A86 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEEgzqrjO/mj9CSsTg2kG8u4u3aiVwFAlt/6P0ACgkQkG8u4u3a iVyTOQf+N0Cy6aoSkxSyAXaOmKRgO65wUki3GJELtJ4Ii1Ncl1mXY0+mbQ7X1rOR 7DYlkSNqS0c8S1eVvgLZn2zSMMOZcVuEKJHJqHp7s7PFymukc2+DfrrS9ver8Eky jnOE0jO7QUy4izJphGsWjLwm2QFJf9Aa8mgZyH5tLArMokXtFK8e9WB3BlPL/zjt n3jzwW6VOZJGERQEtA5ekz2zZMPVxd2fdYKXejGFSeEO4VEJjCN+ywKSKhn5NrN3 fxCPeloFYCaFziY/3VyIUwzoYSpxR4/4ZN1diNs07SOGqgLONSbg3lZaeh9QrgUv kfVvC0BAvzFMwLTUTZvBs6NUwVPg9A== =5yvP -----END PGP SIGNATURE----- --Apple-Mail=_1B038F99-AF79-4006-91DB-ED4638DC7A86--