mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-10-05 05:54:53 +02:00
Only stop SOC if is_manager or is_import
This commit is contained in:
8 files changed
+4
-1
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+4
-1
@@ -845,8 +845,11 @@ else
|
||||
[ -n "$TESTING" ] && logCmd so-test
|
||||
|
||||
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 [[ $is_manager || $is_import ]]; then
|
||||
set_progress_str 96 "Stopping SOC prior to adjusting firewall rules"
|
||||
so-soc-stop # Stop SOC so it doesn't accept external requests prior to the reboot
|
||||
fi
|
||||
set_progress_str 97 "Running so-allow -${ALLOW_ROLE} for ${ALLOW_CIDR}"
|
||||
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user