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

add pf rule to main ruleset #521

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion lib/templates/installer/cx.pow.firewall.plist.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ 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);

Expand Down
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