Joel Heaps
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/config.js
|
|
|
@ -27,7 +27,7 @@ const modules = childProcess.execSync('lsmod', { |
|
|
|
}) |
|
|
|
|
|
|
|
module.exports.WG_POST_UP = process.env.WG_POST_UP |
|
|
|
if (!!process.env.WG_POST_UP) { |
|
|
|
if (!process.env.WG_POST_UP) { |
|
|
|
module.exports.WG_POST_UP = ` |
|
|
|
iptables -t nat -A POSTROUTING -s ${module.exports.WG_DEFAULT_ADDRESS.replace('x', '0')}/24 -o eth0 -j MASQUERADE; |
|
|
|
iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; |
|
|
|
|