mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
hyper setup init
This commit is contained in:
@@ -12,6 +12,7 @@ firewall:
|
||||
eval: []
|
||||
fleet: []
|
||||
heavynode: []
|
||||
hypervisor: []
|
||||
idh: []
|
||||
import: []
|
||||
localhost:
|
||||
@@ -471,6 +472,15 @@ firewall:
|
||||
- elastic_agent_control
|
||||
- elastic_agent_data
|
||||
- elastic_agent_update
|
||||
hypervisor:
|
||||
portgroups:
|
||||
- yum
|
||||
- docker_registry
|
||||
- influxdb
|
||||
- elastic_agent_control
|
||||
- elastic_agent_data
|
||||
- elastic_agent_update
|
||||
- sensoroni
|
||||
customhostgroup0:
|
||||
portgroups: []
|
||||
customhostgroup1:
|
||||
@@ -523,6 +533,9 @@ firewall:
|
||||
desktop:
|
||||
portgroups:
|
||||
- salt_manager
|
||||
hypervisor:
|
||||
portgroups:
|
||||
- salt_manager
|
||||
self:
|
||||
portgroups:
|
||||
- syslog
|
||||
|
||||
@@ -82,4 +82,7 @@ fi
|
||||
'DESKTOP')
|
||||
so-firewall includehost desktop "$IP" --apply
|
||||
;;
|
||||
'HYPERVISOR')
|
||||
so-firewall includehost hypervisor "$IP" --apply
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -624,6 +624,16 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
set_minion_info
|
||||
whiptail_end_settings
|
||||
|
||||
elif [[ $is_hypervisor ]]; then
|
||||
info "Setting up as node type hypervisor"
|
||||
check_requirements
|
||||
networking_needful
|
||||
collect_mngr_hostname
|
||||
add_mngr_ip_to_hosts
|
||||
check_manager_connection
|
||||
set_minion_info
|
||||
whiptail_end_settings
|
||||
|
||||
fi
|
||||
|
||||
if [[ $waitforstate ]]; then
|
||||
|
||||
@@ -681,6 +681,7 @@ whiptail_install_type_dist_existing() {
|
||||
"HEAVYNODE" "Sensor + Search Node " \
|
||||
"IDH" "Intrusion Detection Honeypot Node " \
|
||||
"RECEIVER" "Receiver Node " \
|
||||
"HYPERVISOR" "Hypervisor Node " \
|
||||
3>&1 1>&2 2>&3
|
||||
# "HOTNODE" "Add Hot Node (Uses Elastic Clustering)" \ # TODO
|
||||
# "WARMNODE" "Add Warm Node to existing Hot or Search node" \ # TODO
|
||||
@@ -713,6 +714,8 @@ whiptail_install_type_dist_existing() {
|
||||
is_receiver=true
|
||||
elif [ "$install_type" = 'DESKTOP' ]; then
|
||||
is_desktop=true
|
||||
elif [ "$install_type" = 'HYPERVISOR' ]; then
|
||||
is_hypervisor=true
|
||||
fi
|
||||
|
||||
local exitstatus=$?
|
||||
|
||||
Reference in New Issue
Block a user