mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-03 09:52:50 +00:00
Enable IP forwarding in sysctl configuration
Add conditional configuration for IP forwarding based on OS version.
This commit is contained in:
@@ -78,6 +78,15 @@ flags:
|
|||||||
EOF
|
EOF
|
||||||
$STD npm run db:sqlite:generate
|
$STD npm run db:sqlite:generate
|
||||||
$STD npm run db:sqlite:push
|
$STD npm run db:sqlite:push
|
||||||
|
|
||||||
|
. /etc/os-release
|
||||||
|
if [ "$VERSION_CODENAME" = "trixie" ]; then
|
||||||
|
echo "net.ipv4.ip_forward=1" >>/etc/sysctl.d/sysctl.conf
|
||||||
|
$STD sysctl -p /etc/sysctl.d/sysctl.conf
|
||||||
|
else
|
||||||
|
echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
|
||||||
|
$STD sysctl -p /etc/sysctl.conf
|
||||||
|
fi
|
||||||
msg_ok "Setup Pangolin"
|
msg_ok "Setup Pangolin"
|
||||||
|
|
||||||
msg_info "Creating Services"
|
msg_info "Creating Services"
|
||||||
|
|||||||
Reference in New Issue
Block a user