Stop SOC prior to opening the firewall for analysts, this ensures no outside requests can be processed prior to the server rebooting

This commit is contained in:
Jason Ertel
2020-12-30 16:33:46 -05:00
committed by William Wernert
parent 10d04f760d
commit bdbc637852

View File

@@ -843,6 +843,7 @@ else
[ -n "$TESTING" ] && logCmd so-test [ -n "$TESTING" ] && logCmd so-test
export percentage=95 # set to last percentage used in previous subshell export percentage=95 # set to last percentage used in previous subshell
so-soc-stop # Stop SOC so it doesn't accept external requests prior to the reboot
if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
set_progress_str 97 "Running so-allow -${ALLOW_ROLE} for ${ALLOW_CIDR}" set_progress_str 97 "Running so-allow -${ALLOW_ROLE} for ${ALLOW_CIDR}"
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1 IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1