mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-21 13:05:16 +00:00
Compare commits
3 Commits
2025-11-20
...
github-act
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee67e94f8e | ||
|
|
3f2f29d352 | ||
|
|
636b0d3afd |
@@ -12,6 +12,12 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
## 2025-11-21
|
## 2025-11-21
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- Refactor IPv6 disable logic and add 'disable' option [@MickLesk](https://github.com/MickLesk) ([#9326](https://github.com/community-scripts/ProxmoxVE/pull/9326))
|
||||||
|
|
||||||
## 2025-11-20
|
## 2025-11-20
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"privileged": false,
|
"privileged": false,
|
||||||
"interface_port": 8080,
|
"interface_port": 8080,
|
||||||
"documentation": null,
|
"documentation": null,
|
||||||
"website": "https://filebrowser.org/features",
|
"website": "https://filebrowser.org/index.html#features",
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/file-browser.webp",
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/file-browser.webp",
|
||||||
"config_path": "",
|
"config_path": "",
|
||||||
"description": "File Browser offers a user-friendly web interface for managing files within a designated directory. It allows you to perform various actions such as uploading, deleting, previewing, renaming, and editing files.",
|
"description": "File Browser offers a user-friendly web interface for managing files within a designated directory. It allows you to perform various actions such as uploading, deleting, previewing, renaming, and editing files.",
|
||||||
|
|||||||
@@ -13,14 +13,17 @@ load_functions
|
|||||||
verb_ip6() {
|
verb_ip6() {
|
||||||
set_std_mode # Set STD mode based on VERBOSE
|
set_std_mode # Set STD mode based on VERBOSE
|
||||||
|
|
||||||
if [ "$IPV6_METHOD" == "none" ] || [ "$DISABLEIPV6" == "yes" ]; then
|
if [ "$IPV6_METHOD" == "disable" ]; then
|
||||||
msg_info "Disabling IPv6"
|
msg_info "Disabling IPv6 (this may affect some services)"
|
||||||
$STD sysctl -w net.ipv6.conf.all.disable_ipv6=1
|
$STD sysctl -w net.ipv6.conf.all.disable_ipv6=1
|
||||||
$STD sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
$STD sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
||||||
$STD sysctl -w net.ipv6.conf.lo.disable_ipv6=1
|
$STD sysctl -w net.ipv6.conf.lo.disable_ipv6=1
|
||||||
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
|
mkdir -p /etc/sysctl.d
|
||||||
echo "net.ipv6.conf.default.disable_ipv6 = 1" >>/etc/sysctl.conf
|
$STD tee /etc/sysctl.d/99-disable-ipv6.conf >/dev/null <<EOF
|
||||||
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >>/etc/sysctl.conf
|
net.ipv6.conf.all.disable_ipv6 = 1
|
||||||
|
net.ipv6.conf.default.disable_ipv6 = 1
|
||||||
|
net.ipv6.conf.lo.disable_ipv6 = 1
|
||||||
|
EOF
|
||||||
$STD rc-update add sysctl default
|
$STD rc-update add sysctl default
|
||||||
msg_ok "Disabled IPv6"
|
msg_ok "Disabled IPv6"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -627,11 +627,12 @@ advanced_settings() {
|
|||||||
# IPv6 Address Management selection
|
# IPv6 Address Management selection
|
||||||
while true; do
|
while true; do
|
||||||
IPV6_METHOD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --menu \
|
IPV6_METHOD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --menu \
|
||||||
"Select IPv6 Address Management Type:" 15 58 4 \
|
"Select IPv6 Address Management Type:" 16 70 5 \
|
||||||
"auto" "SLAAC/AUTO (recommended, default)" \
|
"auto" "SLAAC/AUTO (recommended) - Dynamic IPv6 from network" \
|
||||||
"dhcp" "DHCPv6" \
|
"dhcp" "DHCPv6 - DHCP-assigned IPv6 address" \
|
||||||
"static" "Static (manual entry)" \
|
"static" "Static - Manual IPv6 address configuration" \
|
||||||
"none" "Disabled" \
|
"none" "None - No IPv6 assignment (most containers)" \
|
||||||
|
"disable" "Fully Disabled - (breaks some services)" \
|
||||||
--default-item "auto" 3>&1 1>&2 2>&3)
|
--default-item "auto" 3>&1 1>&2 2>&3)
|
||||||
[ $? -ne 0 ] && exit_script
|
[ $? -ne 0 ] && exit_script
|
||||||
|
|
||||||
@@ -680,7 +681,15 @@ advanced_settings() {
|
|||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
none)
|
none)
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}IPv6: ${BGN}Disabled${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}IPv6: ${BGN}None${CL}"
|
||||||
|
IPV6_ADDR="none"
|
||||||
|
IPV6_GATE=""
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
disable)
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox \
|
||||||
|
"⚠️ WARNING - FULLY DISABLE IPv6:\n\nThis will completely disable IPv6 inside the container via sysctl.\n\nSide Effects:\n • Services requiring IPv6 will fail\n • Localhost IPv6 (::1) will not work\n • Some applications may not start\n\nOnly use if you have a specific reason to completely disable IPv6.\n\nFor most use cases, select 'None' instead." 14 70
|
||||||
|
echo -e "${NETWORK}${BOLD}${DGN}IPv6: ${BGN}Fully Disabled (IPv6 disabled via sysctl)${CL}"
|
||||||
IPV6_ADDR="none"
|
IPV6_ADDR="none"
|
||||||
IPV6_GATE=""
|
IPV6_GATE=""
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -15,12 +15,16 @@ load_functions
|
|||||||
verb_ip6() {
|
verb_ip6() {
|
||||||
set_std_mode # Set STD mode based on VERBOSE
|
set_std_mode # Set STD mode based on VERBOSE
|
||||||
|
|
||||||
if [ "$IPV6_METHOD" == "none" ] || [ "$DISABLEIPV6" == "yes" ]; then
|
if [ "$IPV6_METHOD" == "disable" ]; then
|
||||||
msg_info "Disabling IPv6"
|
msg_info "Disabling IPv6 (this may affect some services)"
|
||||||
$STD echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
|
mkdir -p /etc/sysctl.d
|
||||||
$STD echo "net.ipv6.conf.default.disable_ipv6 = 1" >>/etc/sysctl.conf
|
$STD tee /etc/sysctl.d/99-disable-ipv6.conf >/dev/null <<EOF
|
||||||
$STD echo "net.ipv6.conf.lo.disable_ipv6 = 1" >>/etc/sysctl.conf
|
# Disable IPv6 (set by community-scripts)
|
||||||
$STD sysctl -p
|
net.ipv6.conf.all.disable_ipv6 = 1
|
||||||
|
net.ipv6.conf.default.disable_ipv6 = 1
|
||||||
|
net.ipv6.conf.lo.disable_ipv6 = 1
|
||||||
|
EOF
|
||||||
|
$STD sysctl -p /etc/sysctl.d/99-disable-ipv6.conf
|
||||||
msg_ok "Disabled IPv6"
|
msg_ok "Disabled IPv6"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user