mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
fix: syntax error in reserved ports configuration; ensure ports are reserved prior to setup
This commit is contained in:
@@ -1 +1 @@
|
||||
net.ipv4.ip_local_reserved_ports="55000,57314"
|
||||
net.ipv4.ip_local_reserved_ports=55000,57314
|
||||
|
||||
@@ -1792,6 +1792,16 @@ reserve_group_ids() {
|
||||
groupadd -g 946 cyberchef
|
||||
}
|
||||
|
||||
reserve_ports() {
|
||||
# These are also set via salt but need to be set pre-install to avoid conflicts before salt runs
|
||||
if ! sysctl net.ipv4.ip_local_reserved_ports | grep 55000 | grep 57314; then
|
||||
echo "Reserving ephemeral ports used by Security Onion components to avoid collisions"
|
||||
sysctl -w net.ipv4.ip_local_reserved_ports="55000,57314"
|
||||
else
|
||||
echo "Ephemeral ports already reserved"
|
||||
fi
|
||||
}
|
||||
|
||||
reinstall_init() {
|
||||
info "Putting system in state to run setup again"
|
||||
|
||||
|
||||
@@ -550,6 +550,8 @@ set_redirect >> $setup_log 2>&1
|
||||
# Show initial progress message
|
||||
set_progress_str 0 'Running initial configuration steps'
|
||||
|
||||
reserve_ports
|
||||
|
||||
set_path
|
||||
|
||||
if [[ $is_reinstall ]]; then
|
||||
|
||||
Reference in New Issue
Block a user