mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[fix] Log gateway error, and don't show whiptail msg on automated installs
This commit is contained in:
@@ -792,12 +792,14 @@ check_sos_appliance() {
|
|||||||
compare_main_nic_ip() {
|
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
|
||||||
|
error "[ERROR] Main gateway ($MAINIP) does not match ip address of managament NIC ($MNIC_IP)."
|
||||||
|
|
||||||
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 is not a supported configuration, please remediate and rerun setup.
|
||||||
EOM
|
EOM
|
||||||
whiptail --title "Security Onion Setup" --msgbox "$message" 10 75
|
[[ -n $TESTING ]] || whiptail --title "Security Onion Setup" --msgbox "$message" 10 75
|
||||||
kill -SIGINT "$(ps --pid $$ -oppid=)"; exit 1
|
kill -SIGINT "$(ps --pid $$ -oppid=)"; exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user