mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 18:52:52 +01:00
Setup Script - Fix for network interface
This commit is contained in:
@@ -173,6 +173,9 @@ create_bond() {
|
|||||||
echo "bonding" >> /etc/modules
|
echo "bonding" >> /etc/modules
|
||||||
modprobe bonding
|
modprobe bonding
|
||||||
|
|
||||||
|
local LBACK=$(awk '/auto lo/,/^$/' /etc/network/interfaces)
|
||||||
|
local MINT=$(awk "/auto $MNIC/,/^$/" /etc/network/interfaces)
|
||||||
|
|
||||||
# Backup and create a new interface file
|
# Backup and create a new interface file
|
||||||
cp /etc/network/interfaces /etc/network/interfaces.sosetup
|
cp /etc/network/interfaces /etc/network/interfaces.sosetup
|
||||||
echo "source /etc/network/interfaces.d/*" > /etc/network/interfaces
|
echo "source /etc/network/interfaces.d/*" > /etc/network/interfaces
|
||||||
@@ -778,13 +781,13 @@ whiptail_install_type() {
|
|||||||
# What kind of install are we doing?
|
# What kind of install are we doing?
|
||||||
INSTALLTYPE=$(whiptail --title "Security Onion Setup" --radiolist \
|
INSTALLTYPE=$(whiptail --title "Security Onion Setup" --radiolist \
|
||||||
"Choose Install Type:" 20 78 8 \
|
"Choose Install Type:" 20 78 8 \
|
||||||
"EVALMODE" "Evaluate all the things" ON \
|
"SENSORONLY" "Create a forward only sensor" ON \
|
||||||
"SENSORONLY" "Create a forward only sensor" OFF \
|
|
||||||
"MASTERONLY" "Start a new grid" OFF \
|
"MASTERONLY" "Start a new grid" OFF \
|
||||||
"STORAGENODE" "Add a Storage Hot Node with parsing" OFF \
|
"STORAGENODE" "Add a Storage Hot Node with parsing" OFF \
|
||||||
"PARSINGNODE" "Add a dedicated Parsing Node" OFF \
|
"PARSINGNODE" "TODO Add a dedicated Parsing Node" OFF \
|
||||||
"HOTNODE" "Add a Hot Node (Storage Node without Parsing)" OFF \
|
"HOTNODE" "TODO Add a Hot Node (Storage Node without Parsing)" OFF \
|
||||||
"WARMNODE" "Add a Warm Node to an existing Hot or Storage node" OFF 3>&1 1>&2 2>&3 )
|
"EVALMODE" "TODO Evaluate all the things" OFF \
|
||||||
|
"WARMNODE" "TODO Add a Warm Node to an existing Hot or Storage node" OFF 3>&1 1>&2 2>&3 )
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
|||||||
Reference in New Issue
Block a user