start: Fix IP not being added to firewal

This commit is contained in:
tschettervictor
2025-02-16 19:35:27 -07:00
committed by GitHub
parent e8cb90c6c5
commit a1e58f4131

View File

@@ -107,8 +107,8 @@ for _jail in ${JAILS}; do
if ifconfig | grep "^${_if}:" >/dev/null; then
if ifconfig | grep -qwF "${_ip}"; then
warn "Warning: IP address (${_ip}) already in use, continuing..."
pfctl -q -t "${bastille_network_pf_table}" -T add "${_ip}"
fi
pfctl -q -t "${bastille_network_pf_table}" -T add "${_ip}"
else
error_continue "Error: ${_if} interface does not exist."
fi
@@ -127,8 +127,8 @@ for _jail in ${JAILS}; do
if ifconfig | grep "^${_if}:" >/dev/null; then
if ifconfig | grep -qwF "${_ip}"; then
warn "Warning: IP address (${_ip}) already in use, continuing..."
pfctl -q -t "${bastille_network_pf_table}" -T add "${_ip}"
fi
pfctl -q -t "${bastille_network_pf_table}" -T add "${_ip}"
else
error_continue "Error: ${_if} interface does not exist."
fi