mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
[fix] Network functions
* Rename network-manager.service references to NetworkManager for compatibility * Fix array expansion in function to disable unused NICs
This commit is contained in:
@@ -234,7 +234,7 @@ check_network_manager_conf() {
|
|||||||
{
|
{
|
||||||
mv "$gmdconf" "${gmdconf}.bak"
|
mv "$gmdconf" "${gmdconf}.bak"
|
||||||
touch "$gmdconf"
|
touch "$gmdconf"
|
||||||
systemctl restart network-manager
|
systemctl restart NetworkManager
|
||||||
} >> $SETUPLOG 2>&1
|
} >> $SETUPLOG 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -458,8 +458,8 @@ detect_os() {
|
|||||||
fi
|
fi
|
||||||
# Install network manager so we can do interface stuff
|
# Install network manager so we can do interface stuff
|
||||||
apt-get install -y network-manager
|
apt-get install -y network-manager
|
||||||
/bin/systemctl enable network-manager
|
/bin/systemctl enable NetworkManager
|
||||||
/bin/systemctl start network-manager
|
/bin/systemctl start NetworkManager
|
||||||
else
|
else
|
||||||
echo "We were unable to determine if you are using a supported OS." >> $SETUPLOG 2>&1
|
echo "We were unable to determine if you are using a supported OS." >> $SETUPLOG 2>&1
|
||||||
exit
|
exit
|
||||||
@@ -486,7 +486,7 @@ disable_onion_user() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disable_misc_network_features() {
|
disable_misc_network_features() {
|
||||||
for UNUSED_NIC in "${FNICS[@]}"; do
|
for UNUSED_NIC in ${FNICS[@]}; do
|
||||||
# Disable DHCPv4/v6 and autoconnect
|
# Disable DHCPv4/v6 and autoconnect
|
||||||
nmcli con mod "$UNUSED_NIC" \
|
nmcli con mod "$UNUSED_NIC" \
|
||||||
ipv4.method disabled \
|
ipv4.method disabled \
|
||||||
|
|||||||
Reference in New Issue
Block a user