From 241833b7f320e7fca84ba226f1ecbb0c963534f7 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 12 Jul 2024 15:20:54 -0400 Subject: initial commit of hypervisor configs --- scripts/os/freebsd/70-pf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/os/freebsd/70-pf (limited to 'scripts/os/freebsd/70-pf') diff --git a/scripts/os/freebsd/70-pf b/scripts/os/freebsd/70-pf new file mode 100644 index 0000000..9ec9961 --- /dev/null +++ b/scripts/os/freebsd/70-pf @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ "$enable_pf" != true ]; then + return +fi + +# Enable pf. +sysrc -v pf_enable=YES + +# Copy pf configuration. +install_template -m 0600 /etc/pf.conf + +# Start (or reload) pf. +service pf status > /dev/null || service pf start +service pf reload -- cgit v1.2.3