mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
[refactor] Make default route message a warning
Don't force users to exit setup if the default route and management NIC's IP don't match, just warn them
This commit is contained in:
@@ -754,19 +754,23 @@ compare_main_nic_ip() {
|
|||||||
if ! [[ $MNIC =~ ^(tun|wg|vpn).*$ ]]; then
|
if ! [[ $MNIC =~ ^(tun|wg|vpn).*$ ]]; then
|
||||||
if [[ "$MAINIP" != "$MNIC_IP" ]]; then
|
if [[ "$MAINIP" != "$MNIC_IP" ]]; then
|
||||||
read -r -d '' message <<- EOM
|
read -r -d '' message <<- EOM
|
||||||
The IP being routed by Linux is not the IP address assigned to the management interface ($MNIC).
|
The IP being routed by Linux is not the IP address assigned to the management interface ($MNIC).
|
||||||
|
|
||||||
This is not a supported configuration, please remediate and rerun setup.
|
This has been known to cause installs to fail in some scenarios.
|
||||||
EOM
|
|
||||||
whiptail --title "Security Onion Setup" --msgbox "$message" 10 75
|
Please select whether to continue the install or exit setup to remediate any potential issues.
|
||||||
kill -SIGINT "$(ps --pid $$ -oppid=)"; exit 1
|
EOM
|
||||||
fi
|
whiptail --title "Security Onion Setup" \
|
||||||
|
--yesno "$message" 10 75 \
|
||||||
|
--yes-button "Continue" --no-button "Exit" --defaultno
|
||||||
|
|
||||||
|
kill -SIGINT "$(ps --pid $$ -oppid=)"; exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Setup uses MAINIP, but since we ignore the equality condition when using a VPN
|
# Setup uses MAINIP, but since we ignore the equality condition when using a VPN
|
||||||
# just set the variable to the IP of the VPN interface
|
# just set the variable to the IP of the VPN interface
|
||||||
MAINIP=$MNIC_IP
|
MAINIP=$MNIC_IP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compare_versions() {
|
compare_versions() {
|
||||||
|
|||||||
Reference in New Issue
Block a user