Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Adjust firewall script for El Capitan #510

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/templates/installer/cx.pow.firewall.plist.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ module.exports = function(__obj) {

__out.push(__sanitize(this.httpPort));

__out.push('" | pfctl -a "com.apple/250.PowFirewall" -Ef -\n </string>\n </array>\n <key>RunAtLoad</key>\n <true/>\n <key>UserName</key>\n <string>root</string>\n</dict>\n</plist>\n');
__out.push('" | pfctl -Ef -\n </string>\n </array>\n <key>RunAtLoad</key>\n <true/>\n <key>UserName</key>\n <string>root</string>\n</dict>\n</plist>\n');

}).call(this);

}).call(__obj);
__obj.safe = __objSafe, __obj.escape = __escape;
return __out.join('');
}
}
2 changes: 1 addition & 1 deletion src/templates/installer/cx.pow.firewall.plist.eco
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<string>-c</string>
<string>
sysctl -w net.inet.ip.forwarding=1;
echo "rdr pass proto tcp from any to any port {<%= @dstPort %>,<%= @httpPort %>} -> 127.0.0.1 port <%= @httpPort %>" | pfctl -a "com.apple/250.PowFirewall" -Ef -
echo "rdr pass proto tcp from any to any port {<%= @dstPort %>,<%= @httpPort %>} -> 127.0.0.1 port <%= @httpPort %>" | pfctl -Ef -
</string>
</array>
<key>RunAtLoad</key>
Expand Down