changed the occurence of path /etc/pf.conf in the rdr.sh script for reading it as a variable from the bastille configuration.

This commit is contained in:
skenizen
2023-07-12 10:57:46 +02:00
parent e64a6af214
commit 373ccd45d9
2 changed files with 4 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ check_jail_validity() {
fi
# Check if ext_if is defined in pf.conf
EXT_IF=$(grep "^[[:space:]]*${bastille_network_pf_ext_if}[[:space:]]*=" /etc/pf.conf)
EXT_IF=$(grep "^[[:space:]]*${bastille_network_pf_ext_if}[[:space:]]*=" ${bastille_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