[Bug 263774] service pf reload does not check that pf is running

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 04 May 2022 12:55:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263774

            Bug ID: 263774
           Summary: service pf reload does not check that pf is running
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: byrnejb@harte-lyne.ca

Created attachment 233719
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233719&action=edit
diff to add pf running check to pf_rsync command in /etc/rc.d/pf

The command "service pf reload" (service pf resync) does not check that "pf" is
actually running.  As reload or re-syncing a rule-set without pf actually
running makes no sense one may infer that anyone doing this expects that pf is
actually running.  In that case a warning that it is not would be useful.

A diff to add this to /etc/rc.d/pf is attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.