mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Option to disable IPv6 (#986)
This commit is contained in:
parent
61df2ea119
commit
6964f82b4d
160 changed files with 889 additions and 22 deletions
|
@ -127,6 +127,8 @@ function default_settings() {
|
|||
NET=dhcp
|
||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||
GATE=""
|
||||
echo -e "${DGN}Disable IPv6: ${BGN}No${CL}"
|
||||
DISABLEIP6="no"
|
||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
|
||||
MTU=""
|
||||
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||
|
@ -238,6 +240,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||
fi
|
||||
fi
|
||||
if (whiptail --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then
|
||||
echo -e "${DGN}Disable IPv6: ${BGN}Yes${CL}"
|
||||
DISABLEIP6="yes"
|
||||
else
|
||||
echo -e "${DGN}Disable IPv6: ${BGN}No${CL}"
|
||||
DISABLEIP6="no"
|
||||
fi
|
||||
MTU1=$(whiptail --inputbox "Set Interface MTU Size (leave blank for default)" 8 58 --title "MTU SIZE" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
|
@ -461,6 +470,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export DISABLEIPV6=$DISABLEIP6
|
||||
export VERBOSE=$VERB
|
||||
export STD=$VERB2
|
||||
export SSH_ROOT=${SSH}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue