From fbb99470ec820fd7e52debe9096e36bd07d2484a Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Mon, 25 Nov 2019 17:45:17 -0700 Subject: [PATCH] quieting pfctl output in start/stop --- usr/local/share/bastille/start.sh | 2 +- usr/local/share/bastille/stop.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/start.sh b/usr/local/share/bastille/start.sh index 93a875e7..191782a6 100644 --- a/usr/local/share/bastille/start.sh +++ b/usr/local/share/bastille/start.sh @@ -69,7 +69,7 @@ for _jail in ${JAILS}; do ## add ip4.addr to firewall table:jails if [ ! -z ${bastille_jail_loopback} ]; then - pfctl -t jails -T add $(jls -j ${_jail} ip4.addr) + pfctl -q -t jails -T add $(jls -j ${_jail} ip4.addr) fi fi echo diff --git a/usr/local/share/bastille/stop.sh b/usr/local/share/bastille/stop.sh index 1b8bac7f..e65bd7ac 100644 --- a/usr/local/share/bastille/stop.sh +++ b/usr/local/share/bastille/stop.sh @@ -66,7 +66,7 @@ for _jail in ${JAILS}; do elif [ $(jls name | grep -w "${_jail}") ]; then ## remove ip4.addr from firewall table:jails if [ ! -z ${bastille_jail_loopback} ]; then - pfctl -t jails -T delete $(jls -j ${_jail} ip4.addr) + pfctl -q -t jails -T delete $(jls -j ${_jail} ip4.addr) fi ## stop container