Browse Source

Removed iptables rule configuration

All iptables rules should be handled by `/etc/iptables/rules.v*`.  Rules cannot be trusted to be persisted otherwise.
pull/238/head
Joshua K 5 years ago
committed by joshuakraitberg
parent
commit
a55c9a5ef7
  1. 4
      src/lib/WireGuard.js

4
src/lib/WireGuard.js

@ -65,10 +65,6 @@ module.exports = class WireGuard {
throw err;
});
// await Util.exec(`iptables -t nat -A POSTROUTING -s ${WG_DEFAULT_ADDRESS.replace('x', '0')}/24 -o eth0 -j MASQUERADE`);
// await Util.exec('iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT');
// await Util.exec('iptables -A FORWARD -i wg0 -j ACCEPT');
// await Util.exec('iptables -A FORWARD -o wg0 -j ACCEPT');
await this.__syncConfig();
return config;

Loading…
Cancel
Save