aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/70-pf
blob: 9ec9961fe587b14adce56d203e9b0bf593e846ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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