mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Dont disable unused interfaces during setup
This commit is contained in:
@@ -1223,7 +1223,7 @@ filter_unused_nics() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Finally, set filtered_nics to any NICs we aren't using (and ignore interfaces that aren't of use)
|
# Finally, set filtered_nics to any NICs we aren't using (and ignore interfaces that aren't of use)
|
||||||
filtered_nics=$(ip link | awk -F: '$0 !~ "lo|vir|veth|br|docker|tun|wg|wl|^[^0-9]"{print $2}' | grep -vwe "$grep_string" | sed 's/ //g')
|
filtered_nics=$(ip link | awk -F: '$0 !~ "lo|vir|veth|br|docker|wl|^[^0-9]"{print $2}' | grep -vwe "$grep_string" | sed 's/ //g')
|
||||||
readarray -t filtered_nics <<< "$filtered_nics"
|
readarray -t filtered_nics <<< "$filtered_nics"
|
||||||
|
|
||||||
nic_list=()
|
nic_list=()
|
||||||
@@ -1712,8 +1712,8 @@ network_setup() {
|
|||||||
echo "... Verifying all network devices are managed by Network Manager";
|
echo "... Verifying all network devices are managed by Network Manager";
|
||||||
check_network_manager_conf;
|
check_network_manager_conf;
|
||||||
|
|
||||||
echo "... Disabling unused NICs";
|
#echo "... Disabling unused NICs";
|
||||||
disable_misc_network_features;
|
#disable_misc_network_features;
|
||||||
|
|
||||||
echo "... Setting ONBOOT for management interface";
|
echo "... Setting ONBOOT for management interface";
|
||||||
command -v netplan &> /dev/null || nmcli con mod "$MNIC" connection.autoconnect "yes"
|
command -v netplan &> /dev/null || nmcli con mod "$MNIC" connection.autoconnect "yes"
|
||||||
|
|||||||
Reference in New Issue
Block a user