Merge pull request #204 from cedwards/0_6_hotfix

start/stop hotfix and version bump
This commit is contained in:
Christer Edwards
2020-04-14 22:26:13 -06:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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