From nobody Tue Nov 15 21:02:50 2022 X-Original-To: freebsd-hackers@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 4NBdtP5TDGz4hlGg for ; Tue, 15 Nov 2022 21:02:53 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NBdtP4x07z4XZx; Tue, 15 Nov 2022 21:02:53 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668546173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y0oiZFPYI6oq0xs+lQjamrdcByafcbbIfboN59PE8d4=; b=BFZ6LPKpoBpUQmsPuSlZZJZfylO0MLJO4m6j9OLfNCN568l69xnhidE3MDc82o0OJDsHQ9 Y8pF6XQ/oGBz5elCxOnbvka95jRZQpchdnxyInPwOkKHO4drZ25ayhvYr89+ROqO7OGSS6 26N2h+IGilS6blRTDA6lv/jNCKjI9a/MW6x9ETUDSSCGttuqxPA/56NETZcKZOeMCfzU0M 7FvCUWEXFGzzugfqSh+K6iZnP6i+VX7WWiBLEQ65YsvvSU0EKfk9cRCHqamtXzCloyx0Qj uZwHOa/ymtIMjtNEfhGcp4ZaZFhw/vHBBHq8LI/9wO8j9n7LtidfYZ78y3cZLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668546173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y0oiZFPYI6oq0xs+lQjamrdcByafcbbIfboN59PE8d4=; b=bl1YCGywho8TpegybX9RaE9bMZToeLtEvJjmQAK/Ks5MGGcxgOiJOpqJPwuZtUCtKPrCQR Moq0cOg586crZrXHuKoxRAYDzJ0TmxjrE+t40cJcsPsJklil1prJ32r6w5A3S6v9lga3I7 7Si3QQwmUDhlwkiIDD27alvEerxvQbcNxqlhF/zZwKtTJCTlpS97gm5zpOyjG/Jdkm6HfZ G4DQJAiIA6LmWS4xWpD40Fu1DPPocUIxQwKTxPHV02/BaETFO6ALFiExTMbwONR4c4eRFf crgvz+Sip2pBp3spDtvBE8V2Djafe866Mc1DLvdB7ziZVjybwLvvwKqIJMikhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668546173; a=rsa-sha256; cv=none; b=Q/uSQOv2tZqP2sO8Z7pWHPEtGRvIpS1AtpcTIEo2IuQZSug8hadTBRJ1tSkNYyZXF2KqbZ Hz9wVNR0PKTpTddryMhptieAwCktT9/72W4xVYEUxcPr5EdVhMgfz2vk/FolJ5H8fn7Gvm saD3yxIRsXU4mGgnWdCvQTzXWBuF6lKfP/UiIT5LdptM/xGuC1bAevCmHI0aDx7KZCe1gA DZ+59moNPxrP/VDyxK0zs1Vtrj6s18/HBrWTtZaahb3tBuLK41f+4QELufyoQobtEl1E7N gkK5bpaRR9uf0Eaah9ElHYytHGQJRJ7oFfKTmaRxMze79/2RNHCBSsBFdUZHFw== Received: from ns2.wilbury.net (ns2.wilbury.net [92.60.51.55]) (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 "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NBdtP3JwdzjMw; Tue, 15 Nov 2022 21:02:53 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (gw-upc.owhome.net [188.167.168.254]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 288AF45D323; Tue, 15 Nov 2022 22:02:51 +0100 (CET) Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: pf options in kernel From: Juraj Lutter In-Reply-To: <956b5ca1d8632e9a497cec80969096e0@bsdforge.com> Date: Tue, 15 Nov 2022 22:02:50 +0100 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <96B5F854-DD69-478C-BAE0-2E753AA7B8D7@FreeBSD.org> References: <956b5ca1d8632e9a497cec80969096e0@bsdforge.com> To: Chris X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on ns2.wilbury.net X-ThisMailContainsUnwantedMimeParts: N > On 15 Nov 2022, at 21:53, Chris wrote: >=20 > On 2022-11-15 12:47, void wrote: >> Hi, >> Is there any advantage to having >> device pf >> options PF_DEFAULT_TO_DROP >> built into the kernel, over having >> "set block-policy drop" in /etc/pf.conf and "pf_enable=3D"YES"" in = /etc/rc.conf?0 >=20 > six of one, or a half dozen of the other. IOW no, not really. :-) The difference is that when pf is being enabled in rc.conf, there is a = time window when the system is =E2=80=9Cunprotected=E2=80=9D, while when pf is built into = kernel with PF_DEFAULT_TO_DROP, the system is not exposed to, potentially, hostile network environment = (as the rules are loaded as part of rc sequence, but you must explicitly allow = traffic). otis =E2=80=94 Juraj Lutter otis@FreeBSD.org