Merge pull request #605 from JRGTH/rdr_fixes

Add rdr pf conf check
This commit is contained in:
Barry McCormick
2023-10-18 08:53:47 -07:00
committed by GitHub

View File

@@ -88,9 +88,11 @@ check_jail_validity() {
fi fi
# Check if ext_if is defined in pf.conf # Check if ext_if is defined in pf.conf
EXT_IF=$(grep "^[[:space:]]*${bastille_network_pf_ext_if}[[:space:]]*=" ${bastille_pf_conf}) if [ -n "${bastille_pf_conf}" ]; then
if [ -z "${EXT_IF}" ]; then EXT_IF=$(grep "^[[:space:]]*${bastille_network_pf_ext_if}[[:space:]]*=" ${bastille_pf_conf})
error_exit "bastille_network_pf_ext_if (${bastille_network_pf_ext_if}) not defined in pf.conf" if [ -z "${EXT_IF}" ]; then
error_exit "bastille_network_pf_ext_if (${bastille_network_pf_ext_if}) not defined in pf.conf"
fi
fi fi
} }