From 21abd0905255fa3992dfef156c816faf9f583049 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 24 Aug 2024 09:15:31 -0400 Subject: [PATCH] Update wireguard-install.sh configure Network Address Translation --- install/wireguard-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index e1b470fc..4b775545 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -21,7 +21,10 @@ $STD apt-get install -y git msg_ok "Installed Dependencies" msg_info "Installing WireGuard" -$STD apt-get install -y wireguard wireguard-tools net-tools iptables +$STD apt-get install -y wireguard wireguard-tools net-tools iptables iptables-persistent +iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE +$STD netfilter-persistent save +$STD netfilter-persistent reload msg_ok "Installed WireGuard" msg_info "Installing WGDashboard"