mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-02 10:49:48 +01:00
start: Fix IP not being added to firewal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user