Browse Source

config.js: fixup ipv6

pull/1108/head
Philip H 2 years ago
committed by GitHub
parent
commit
3cf2c34060
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/config.js

2
src/config.js

@ -39,7 +39,7 @@ if (!process.env.WG_POST_UP) {
iptables -A FORWARD -o wg0 -j ACCEPT;`; iptables -A FORWARD -o wg0 -j ACCEPT;`;
if (modules.includes('ip6table_nat')) { 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 INPUT -p udp -m udp --dport 51820 -j ACCEPT;
ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -A FORWARD -i wg0 -j ACCEPT;
ip6tables -A FORWARD -o wg0 -j ACCEPT;`; ip6tables -A FORWARD -o wg0 -j ACCEPT;`;

Loading…
Cancel
Save