mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Merge branch '2.4/dev' into kilo
This commit is contained in:
@@ -339,6 +339,33 @@ collect_hostname_validate() {
|
||||
done
|
||||
}
|
||||
|
||||
collect_idh_preferences() {
|
||||
IDH_MGTRESTRICT='False'
|
||||
whiptail_idh_preferences
|
||||
|
||||
if [[ "$idh_preferences" != "" ]]; then IDH_MGTRESTRICT='True'; fi
|
||||
}
|
||||
|
||||
collect_idh_services() {
|
||||
whiptail_idh_services
|
||||
|
||||
case "$IDH_SERVICES" in
|
||||
'Linux Webserver (NAS Skin)')
|
||||
IDH_SERVICES='"HTTP","FTP","SSH"'
|
||||
;;
|
||||
'MySQL Server')
|
||||
IDH_SERVICES='"MYSQL","SSH"'
|
||||
;;
|
||||
'MSSQL Server')
|
||||
IDH_SERVICES='"MSSQL","VNC'
|
||||
;;
|
||||
'Custom')
|
||||
whiptail_idh_services_custom
|
||||
IDH_SERVICES=$(echo "$IDH_SERVICES" | tr '[:blank:]' ',' )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
collect_int_ip_mask() {
|
||||
whiptail_management_interface_ip_mask
|
||||
|
||||
@@ -1875,6 +1902,8 @@ drop_install_options() {
|
||||
echo "LSHOSTNAME=$HOSTNAME" >> /opt/so/install.txt
|
||||
echo "LSHEAP=$LS_HEAP_SIZE" >> /opt/so/install.txt
|
||||
echo "CPUCORES=$num_cpu_cores" >> /opt/so/install.txt
|
||||
echo "IDH_MGTRESTRICT=$IDH_MGTRESTRICT" >> /opt/so/install.txt
|
||||
echo "IDH_SERVICES=$IDH_SERVICES" >> /opt/so/install.txt
|
||||
}
|
||||
|
||||
remove_package() {
|
||||
|
||||
@@ -453,6 +453,8 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
collect_mngr_hostname
|
||||
add_mngr_ip_to_hosts
|
||||
check_manager_connection
|
||||
collect_idh_services
|
||||
collect_idh_preferences
|
||||
set_minion_info
|
||||
whiptail_end_settings
|
||||
|
||||
@@ -538,8 +540,6 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
export NODETYPE=$install_type
|
||||
export MINION_ID=$MINION_ID
|
||||
export ES_HEAP_SIZE=$ES_HEAP_SIZE
|
||||
export IDHMGTRESTRICT=$IDHMGTRESTRICT
|
||||
export idh_services=$idh_services
|
||||
export MNIC=$MNIC
|
||||
export NODE_DESCRIPTION=$NODE_DESCRIPTION
|
||||
export MAINIP=$MAINIP
|
||||
|
||||
@@ -466,6 +466,58 @@ whiptail_gauge_post_setup() {
|
||||
fi
|
||||
}
|
||||
|
||||
whiptail_idh_preferences() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
idh_preferences=$(whiptail --title "$whiptail_title" --radiolist \
|
||||
"\nBy default, the IDH services selected in the previous screen will be bound to all interfaces and IP addresses on this system.\n\nIf you would like to prevent IDH services from being published on this system's management IP, you can select the option below." 20 75 5 \
|
||||
"$MAINIP" "Disable IDH services on this management IP " OFF 3>&1 1>&2 2>&3 )
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
}
|
||||
|
||||
whiptail_idh_services() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
IDH_SERVICES=$(whiptail --title "$whiptail_title" --radiolist \
|
||||
"\nThe IDH node can mimic many different services.\n\nChoose one of the common options along with their default ports (TCP) or select the Custom option to build a customized set of services." 20 75 5 \
|
||||
"Linux Webserver (NAS Skin)" "Apache (80), FTP (21), SSH (22)" ON \
|
||||
"MySQL Server" "MySQL (3306), SSH (22)" OFF \
|
||||
"MSSQL Server" "Microsoft SQL (1433), VNC (5900)" OFF \
|
||||
"Custom" "Select a custom set of services" OFF 3>&1 1>&2 2>&3 )
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
}
|
||||
|
||||
|
||||
whiptail_idh_services_custom() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
IDH_SERVICES=$(whiptail --title "$whiptail_title" --checklist \
|
||||
"\nThe IDH node can mimic many different services.\n\nChoose one or more of the following services along with their default ports. Some services have additional configuration options, please consult the documentation for further information." 25 75 8 \
|
||||
"FTP" " TCP/21, Additional Configuration Available " OFF \
|
||||
"Git" " TCP/9418 " OFF \
|
||||
"HTTP" " TCP/80, Additional Configuration Available " OFF \
|
||||
"HTTPPROXY" " TCP/8080, Additional Configuration Available " OFF \
|
||||
"MSSQL" " TCP/1433 " OFF \
|
||||
"MySQL" " TCP/3306, Additional Configuration Available " OFF \
|
||||
"NTP" " UDP/123 " OFF \
|
||||
"REDIS" " TCP/6379 " OFF \
|
||||
"SNMP" " UDP/161 " OFF \
|
||||
"SSH" " TCP/22, Additional Configuration Available " OFF \
|
||||
"TELNET" " TCP/23, Additional Configuration Available " OFF \
|
||||
"TFTP" " UDP/69 " OFF \
|
||||
"VNC" " TCP/5900 " OFF 3>&1 1>&2 2>&3 )
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
}
|
||||
|
||||
whiptail_install_type() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
Reference in New Issue
Block a user