mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-26 23:40:38 +01:00
Merge pull request #204 from cedwards/0_6_hotfix
start/stop hotfix and version bump
This commit is contained in:
@@ -69,7 +69,7 @@ bastille_perms_check
|
||||
. /usr/local/etc/bastille/bastille.conf
|
||||
|
||||
## version
|
||||
BASTILLE_VERSION="0.6.20200412"
|
||||
BASTILLE_VERSION="0.6.20200414"
|
||||
|
||||
usage() {
|
||||
cat << EOF
|
||||
|
||||
@@ -89,7 +89,7 @@ for _jail in ${JAILS}; do
|
||||
fi
|
||||
|
||||
## add ip4.addr to firewall table:jails
|
||||
if [ ! -z "${bastille_network_loopback}" ]; then
|
||||
if grep "interface = ${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
|
||||
pfctl -q -t jails -T add "$(jls -j "${_jail}" ip4.addr)"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -67,7 +67,7 @@ for _jail in ${JAILS}; do
|
||||
## test if running
|
||||
if [ "$(jls name | awk "/^${_jail}$/")" ]; then
|
||||
## remove ip4.addr from firewall table:jails
|
||||
if [ -n "${bastille_network_loopback}" ]; then
|
||||
if grep "interface = ${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
|
||||
pfctl -q -t jails -T delete "$(jls -j "${_jail}" ip4.addr)"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user