mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
dont allow 172.17.0.0/24 for custom dockernet
This commit is contained in:
@@ -245,7 +245,7 @@ collect_dns() {
|
||||
collect_dns_domain() {
|
||||
whiptail_management_interface_dns_search "searchdomain.local"
|
||||
|
||||
while ! valid_fqdn "$MSEARCH"; do
|
||||
while ! valid_ip4 "$DOCKERNET" || [[ $DOCKERNET =~ "172.17.0." ]]; do
|
||||
whiptail_invalid_input
|
||||
whiptail_management_interface_dns_search "$MSEARCH"
|
||||
done
|
||||
|
||||
@@ -330,7 +330,7 @@ whiptail_dockernet_sosnet() {
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
DOCKERNET=$(whiptail --title "$whiptail_title" --inputbox \
|
||||
"\nEnter a /24 size network range for SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes." 11 65 "$1" 3>&1 1>&2 2>&3)
|
||||
"\nEnter a /24 size network range for SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes. Any range within 172.17.0.0/24 cannot be used." 11 65 "$1" 3>&1 1>&2 2>&3)
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
|
||||
Reference in New Issue
Block a user