mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-19 18:28:07 +00:00
Alpine-Wireguard: Fix for sysctl and ip_forward (#3744)
* moved ip forwarding to wireguard install and removed silent before echo command, testing if this was a bug * Adding $STD before echo command * Update install/alpine-wireguard-install.sh Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --------- Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
parent
9ef7ad5d2a
commit
542f93437a
@ -41,6 +41,9 @@ PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACC
|
|||||||
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;
|
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;
|
||||||
ListenPort = 51820
|
ListenPort = 51820
|
||||||
EOF
|
EOF
|
||||||
|
echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
|
||||||
|
$STD rc-update add sysctl
|
||||||
|
$STD sysctl -p /etc/sysctl.conf
|
||||||
msg_ok "Installed WireGuard"
|
msg_ok "Installed WireGuard"
|
||||||
|
|
||||||
read -rp "Do you want to install WGDashboard? (y/N): " INSTALL_WGD
|
read -rp "Do you want to install WGDashboard? (y/N): " INSTALL_WGD
|
||||||
@ -61,8 +64,6 @@ if [[ "$INSTALL_WGD" =~ ^[Yy]$ ]]; then
|
|||||||
cd /etc/wgdashboard/src || exit
|
cd /etc/wgdashboard/src || exit
|
||||||
chmod u+x wgd.sh
|
chmod u+x wgd.sh
|
||||||
$STD ./wgd.sh install
|
$STD ./wgd.sh install
|
||||||
$STD echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
|
|
||||||
sysctl -p /etc/sysctl.conf
|
|
||||||
msg_ok "Installed WGDashboard"
|
msg_ok "Installed WGDashboard"
|
||||||
|
|
||||||
msg_info "Creating Service for WGDashboard"
|
msg_info "Creating Service for WGDashboard"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user