From 3cf2c3406077def7551f45d2888fb7840d747ed9 Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:30:37 +0200 Subject: [PATCH] config.js: fixup ipv6 --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 45974174..a4ec3f01 100644 --- a/src/config.js +++ b/src/config.js @@ -39,7 +39,7 @@ if (!process.env.WG_POST_UP) { iptables -A FORWARD -o wg0 -j ACCEPT;`; if (modules.includes('ip6table_nat')) { - module.exports.WG_POST_UP += `ip6tables -t nat -A POSTROUTING -s ${module.exports.WG_DEFAULT_ADDRESS6.replace('x', '0')}/64 -o eth0 -j MASQUERADE; + module.exports.WG_POST_UP += `ip6tables -t nat -A POSTROUTING -s ${module.exports.WG_DEFAULT_ADDRESS6.replace('x', '0')}/64 -o ${module.exports.WG_DEVICE} -j MASQUERADE; ip6tables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -A FORWARD -o wg0 -j ACCEPT;`;