mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
IDH - setup tweaks
This commit is contained in:
@@ -450,11 +450,21 @@ collect_hostname_validate() {
|
||||
collect_idh_services() {
|
||||
whiptail_idh_services
|
||||
|
||||
if [ $idh_services == "Custom"; ] then
|
||||
whiptail_idh_services_custom
|
||||
fi
|
||||
|
||||
echo $idh_services
|
||||
case "$idh_services" in
|
||||
'Linux Webserver')
|
||||
idh_services=("HTTP" "FTP" "SSH")
|
||||
;;
|
||||
'MySQL Server')
|
||||
idh_services=("MYSQL" "SSH")
|
||||
;;
|
||||
'MSSQL Server')
|
||||
idh_services=("MSSQL" "VNC")
|
||||
;;
|
||||
'Custom')
|
||||
whiptail_idh_services_custom
|
||||
echo $idh_services
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
collect_int_ip_mask() {
|
||||
@@ -2839,6 +2849,16 @@ wait_for_salt_minion() {
|
||||
retry 60 5 "journalctl -u salt-minion.service | grep 'Minion is ready to receive requests'" >> "$setup_log" 2>&1 || exit 1
|
||||
}
|
||||
|
||||
write_out_idh_services() {
|
||||
printf '%s\n'\
|
||||
"idh:"\
|
||||
" opencanary:"\
|
||||
" config:" >> "$minion_config"
|
||||
for service in ${idh_services[@]}; do
|
||||
echo " - $service" >> "$minion_config"
|
||||
done
|
||||
}
|
||||
|
||||
# Enable Zeek Logs
|
||||
zeek_logs_enabled() {
|
||||
echo "Enabling Zeek Logs" >> "$setup_log" 2>&1
|
||||
|
||||
Reference in New Issue
Block a user