You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "$NET is an invalid IPv4 CIDR address. Please enter a valid IPv4 CIDR address or 'dhcp'" 8 58
568
+
whiptail --msgbox "$NET is not a valid IPv4 CIDR address. Please enter a correct value!" 8 58
547
569
fi
548
-
fi
549
-
else
550
-
exit_script
551
-
fi
570
+
done
571
+
572
+
# call and validate Gateway
573
+
while true; do
574
+
GATE1=$(whiptail --backtitle "Proxmox VE Helper Scripts" \
575
+
--inputbox "Enter Gateway IP address for static IPv4" 8 58 "" \
576
+
--title "Gateway IP" 3>&1 1>&2 2>&3)
577
+
if [ -z "$GATE1" ]; then
578
+
whiptail --msgbox "Gateway IP address cannot be empty." 8 58
579
+
elif [[ ! "$GATE1" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then
580
+
whiptail --msgbox "Invalid Gateway IP address format." 8 58
581
+
else
582
+
GATE=",gw=$GATE1"
583
+
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}$GATE1${CL}"
584
+
break
585
+
fi
586
+
done
587
+
break
588
+
;;
589
+
esac
552
590
done
553
591
554
-
if [ "$NET" != "dhcp" ]; then
555
-
while true; do
556
-
GATE1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Enter gateway IP address" 8 58 --title "Gateway IP" 3>&1 1>&2 2>&3)
557
-
if [ -z "$GATE1" ]; then
558
-
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Gateway IP address cannot be empty" 8 58
559
-
elif [[ ! "$GATE1" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then
560
-
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox "Invalid IP address format" 8 58
561
-
else
562
-
GATE=",gw=$GATE1"
563
-
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}$GATE1${CL}"
564
-
break
565
-
fi
566
-
done
567
-
else
568
-
GATE=""
569
-
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}Default${CL}"
570
-
fi
592
+
# IPv6 Address Management selection
593
+
while true; do
594
+
IPV6_METHOD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --menu \
if MTU1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Interface MTU Size (leave blank for default [The MTU of your selected vmbr, default is 1500])" 8 58 --title "MTU SIZE" 3>&1 1>&2 2>&3); then
0 commit comments