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
|
@ -1,12 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
function header_info {
|
||||
cat <<"EOF"
|
||||
____ __________ _______ _ __
|
||||
/ __ \/ ____/ __ )/ _/ | / | / /
|
||||
/ / / / __/ / __ |/ // /| | / |/ /
|
||||
/ /_/ / /_v5/ /_/ // // ___ |/ /| /
|
||||
/_____/_____/_____/___/_/ |_/_/ |_/
|
||||
|
||||
____ __ _
|
||||
/ __ \___v5/ /_ (_)___ _____
|
||||
/ / / / _ \/ __ \/ / __ `/ __ \
|
||||
/ /_/ / __/ /_/ / / /_/ / / / /
|
||||
/_____/\___/_.___/_/\__,_/_/ /_/
|
||||
|
||||
EOF
|
||||
}
|
||||
clear
|
||||
|
@ -122,6 +122,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}"
|
||||
|
@ -233,6 +235,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
|
||||
|
@ -347,6 +356,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