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: []
|
eval: []
|
||||||
fleet: []
|
fleet: []
|
||||||
heavynode: []
|
heavynode: []
|
||||||
|
hypervisor: []
|
||||||
idh: []
|
idh: []
|
||||||
import: []
|
import: []
|
||||||
localhost:
|
localhost:
|
||||||
@@ -471,6 +472,15 @@ firewall:
|
|||||||
- elastic_agent_control
|
- elastic_agent_control
|
||||||
- elastic_agent_data
|
- elastic_agent_data
|
||||||
- elastic_agent_update
|
- elastic_agent_update
|
||||||
|
hypervisor:
|
||||||
|
portgroups:
|
||||||
|
- yum
|
||||||
|
- docker_registry
|
||||||
|
- influxdb
|
||||||
|
- elastic_agent_control
|
||||||
|
- elastic_agent_data
|
||||||
|
- elastic_agent_update
|
||||||
|
- sensoroni
|
||||||
customhostgroup0:
|
customhostgroup0:
|
||||||
portgroups: []
|
portgroups: []
|
||||||
customhostgroup1:
|
customhostgroup1:
|
||||||
@@ -523,6 +533,9 @@ firewall:
|
|||||||
desktop:
|
desktop:
|
||||||
portgroups:
|
portgroups:
|
||||||
- salt_manager
|
- salt_manager
|
||||||
|
hypervisor:
|
||||||
|
portgroups:
|
||||||
|
- salt_manager
|
||||||
self:
|
self:
|
||||||
portgroups:
|
portgroups:
|
||||||
- syslog
|
- syslog
|
||||||
|
|||||||
@@ -82,4 +82,7 @@ fi
|
|||||||
'DESKTOP')
|
'DESKTOP')
|
||||||
so-firewall includehost desktop "$IP" --apply
|
so-firewall includehost desktop "$IP" --apply
|
||||||
;;
|
;;
|
||||||
|
'HYPERVISOR')
|
||||||
|
so-firewall includehost hypervisor "$IP" --apply
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -624,6 +624,16 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
set_minion_info
|
set_minion_info
|
||||||
whiptail_end_settings
|
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
|
fi
|
||||||
|
|
||||||
if [[ $waitforstate ]]; then
|
if [[ $waitforstate ]]; then
|
||||||
|
|||||||
@@ -681,6 +681,7 @@ whiptail_install_type_dist_existing() {
|
|||||||
"HEAVYNODE" "Sensor + Search Node " \
|
"HEAVYNODE" "Sensor + Search Node " \
|
||||||
"IDH" "Intrusion Detection Honeypot Node " \
|
"IDH" "Intrusion Detection Honeypot Node " \
|
||||||
"RECEIVER" "Receiver Node " \
|
"RECEIVER" "Receiver Node " \
|
||||||
|
"HYPERVISOR" "Hypervisor Node " \
|
||||||
3>&1 1>&2 2>&3
|
3>&1 1>&2 2>&3
|
||||||
# "HOTNODE" "Add Hot Node (Uses Elastic Clustering)" \ # TODO
|
# "HOTNODE" "Add Hot Node (Uses Elastic Clustering)" \ # TODO
|
||||||
# "WARMNODE" "Add Warm Node to existing Hot or Search node" \ # TODO
|
# "WARMNODE" "Add Warm Node to existing Hot or Search node" \ # TODO
|
||||||
@@ -713,6 +714,8 @@ whiptail_install_type_dist_existing() {
|
|||||||
is_receiver=true
|
is_receiver=true
|
||||||
elif [ "$install_type" = 'DESKTOP' ]; then
|
elif [ "$install_type" = 'DESKTOP' ]; then
|
||||||
is_desktop=true
|
is_desktop=true
|
||||||
|
elif [ "$install_type" = 'HYPERVISOR' ]; then
|
||||||
|
is_hypervisor=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user