mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-13 12:42:56 +01:00
@@ -462,7 +462,7 @@ fleet_crt:
|
|||||||
- name: /etc/pki/fleet.crt
|
- name: /etc/pki/fleet.crt
|
||||||
- signing_private_key: /etc/pki/fleet.key
|
- signing_private_key: /etc/pki/fleet.key
|
||||||
- CN: {{ manager }}
|
- CN: {{ manager }}
|
||||||
- subjectAltName: DNS:{{ manager }},IP:{{ managerip }}
|
- subjectAltName: DNS:{{ manager }},IP:{{ managerip }}{% if CUSTOM_FLEET_HOSTNAME != None %},DNS:{{ CUSTOM_FLEET_HOSTNAME }}{% endif %}
|
||||||
- days_remaining: 0
|
- days_remaining: 0
|
||||||
- days_valid: 820
|
- days_valid: 820
|
||||||
- backup: True
|
- backup: True
|
||||||
|
|||||||
@@ -90,11 +90,14 @@ zeekpolicysync:
|
|||||||
# Ensure the zeek spool tree (and state.db) ownership is correct
|
# Ensure the zeek spool tree (and state.db) ownership is correct
|
||||||
zeekspoolownership:
|
zeekspoolownership:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /nsm/zeek
|
- name: /nsm/zeek/spool
|
||||||
- user: 937
|
- user: 937
|
||||||
- max_depth: 1
|
zeekstatedbownership:
|
||||||
- recurse:
|
file.managed:
|
||||||
- user
|
- name: /nsm/zeek/spool/state.db
|
||||||
|
- user: 937
|
||||||
|
- replace: False
|
||||||
|
- create: False
|
||||||
|
|
||||||
# Sync Intel
|
# Sync Intel
|
||||||
zeekintelloadsync:
|
zeekintelloadsync:
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ ADMINPASS2=onionuser
|
|||||||
HNMANAGER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
|
HNMANAGER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
|
||||||
HNSENSOR=inherit
|
HNSENSOR=inherit
|
||||||
HOSTNAME=distributed-search
|
HOSTNAME=distributed-search
|
||||||
INTERWEBS=AIRGAP
|
|
||||||
install_type=SEARCHNODE
|
install_type=SEARCHNODE
|
||||||
# LSINPUTBATCHCOUNT=
|
# LSINPUTBATCHCOUNT=
|
||||||
# LSINPUTTHREADS=
|
# LSINPUTTHREADS=
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ ZEEKVERSION=ZEEK
|
|||||||
HNMANAGER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
|
HNMANAGER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
|
||||||
HNSENSOR=inherit
|
HNSENSOR=inherit
|
||||||
HOSTNAME=distributed-sensor
|
HOSTNAME=distributed-sensor
|
||||||
INTERWEBS=AIRGAP
|
|
||||||
install_type=SENSOR
|
install_type=SENSOR
|
||||||
# LSINPUTBATCHCOUNT=
|
# LSINPUTBATCHCOUNT=
|
||||||
# LSINPUTTHREADS=
|
# LSINPUTTHREADS=
|
||||||
|
|||||||
@@ -265,14 +265,6 @@ if [[ $is_manager || $is_import ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [[ -f $install_opt_file ]]; then
|
if ! [[ -f $install_opt_file ]]; then
|
||||||
# Check if this is an airgap install
|
|
||||||
if [[ ( $is_manager || $is_import || $is_minion ) && $is_iso ]]; then
|
|
||||||
whiptail_airgap
|
|
||||||
if [[ "$INTERWEBS" == 'AIRGAP' ]]; then
|
|
||||||
is_airgap=true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $is_manager && $is_sensor ]]; then
|
if [[ $is_manager && $is_sensor ]]; then
|
||||||
check_requirements "standalone"
|
check_requirements "standalone"
|
||||||
elif [[ $is_fleet_standalone ]]; then
|
elif [[ $is_fleet_standalone ]]; then
|
||||||
@@ -312,17 +304,29 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
add_mngr_ip_to_hosts
|
add_mngr_ip_to_hosts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $is_minion ]]; then
|
||||||
|
whiptail_ssh_key_copy_notice
|
||||||
|
copy_ssh_key >> $setup_log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if this is an airgap install
|
||||||
|
if [[ ( $is_manager || $is_import) && $is_iso ]]; then
|
||||||
|
whiptail_airgap
|
||||||
|
if [[ "$INTERWEBS" == 'AIRGAP' ]]; then
|
||||||
|
is_airgap=true
|
||||||
|
fi
|
||||||
|
elif [[ $is_minion && $is_iso ]]; then
|
||||||
|
$sshcmd -i /root/.ssh/so.key soremote@"$MSRV" [[ -f /etc/yum.repos.d/airgap_repo.repo ]] >> $setup_log 2>&1
|
||||||
|
airgap_check=$?
|
||||||
|
[[ $airgap_check ]] && is_airgap=true >> $setup_log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
reset_proxy
|
reset_proxy
|
||||||
if [[ -z $is_airgap ]]; then
|
if [[ -z $is_airgap ]]; then
|
||||||
collect_net_method
|
collect_net_method
|
||||||
[[ -n "$so_proxy" ]] && set_proxy >> $setup_log 2>&1
|
[[ -n "$so_proxy" ]] && set_proxy >> $setup_log 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_minion ]]; then
|
|
||||||
whiptail_ssh_key_copy_notice
|
|
||||||
copy_ssh_key >> $setup_log 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $is_minion ]] && ! (compare_versions); then
|
if [[ $is_minion ]] && ! (compare_versions); then
|
||||||
info "Installer version mismatch, downloading correct version from manager"
|
info "Installer version mismatch, downloading correct version from manager"
|
||||||
printf '%s\n' \
|
printf '%s\n' \
|
||||||
@@ -337,7 +341,6 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
download_repo_tarball
|
download_repo_tarball
|
||||||
exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}"
|
exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
rm -rf $install_opt_file >> "$setup_log" 2>&1
|
rm -rf $install_opt_file >> "$setup_log" 2>&1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -505,6 +505,8 @@ whiptail_end_settings() {
|
|||||||
[[ -n $WEBUSER ]] && __append_end_msg "Web User: $WEBUSER"
|
[[ -n $WEBUSER ]] && __append_end_msg "Web User: $WEBUSER"
|
||||||
|
|
||||||
[[ -n $FLEETNODEUSER ]] && __append_end_msg "Fleet User: $FLEETNODEUSER"
|
[[ -n $FLEETNODEUSER ]] && __append_end_msg "Fleet User: $FLEETNODEUSER"
|
||||||
|
|
||||||
|
[[ -n $FLEETCUSTOMHOSTNAME ]] && __append_end_msg "Fleet Custom Hostname: $FLEETCUSTOMHOSTNAME"
|
||||||
|
|
||||||
if [[ $is_manager ]]; then
|
if [[ $is_manager ]]; then
|
||||||
__append_end_msg "Enabled Optional Components:"
|
__append_end_msg "Enabled Optional Components:"
|
||||||
|
|||||||
Reference in New Issue
Block a user