Add check_pfenabled function

This commit is contained in:
Tristan PILAT 2020-04-27 15:30:42 +02:00
parent a5a034e611
commit c436480014
1 changed files with 3 additions and 0 deletions

View File

@ -182,6 +182,9 @@ check_rebootmail(){
}
check_pfenabled(){
if pfctl -si | grep Disabled 1> /dev/null 2>&1; then
failed "IS_PFENABLED" "PF is disabled! Make sure pf=NO is absent from /etc/rc.conf.local and carefully run pfctl -e"
fi
}
check_pfcustom(){