From 415f190734ffae9ee56b12ed60c8156a644ba5c4 Mon Sep 17 00:00:00 2001 From: Cory Borg Date: Tue, 14 Jul 2015 22:38:12 -0400 Subject: [PATCH] Adjust firewall script for El Capitan --- lib/templates/installer/cx.pow.firewall.plist.js | 4 ++-- src/templates/installer/cx.pow.firewall.plist.eco | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/templates/installer/cx.pow.firewall.plist.js b/lib/templates/installer/cx.pow.firewall.plist.js index e9f81bf..044c819 100644 --- a/lib/templates/installer/cx.pow.firewall.plist.js +++ b/lib/templates/installer/cx.pow.firewall.plist.js @@ -49,11 +49,11 @@ module.exports = function(__obj) { __out.push(__sanitize(this.httpPort)); - __out.push('" | pfctl -a "com.apple/250.PowFirewall" -Ef -\n \n \n RunAtLoad\n \n UserName\n root\n\n\n'); + __out.push('" | pfctl -Ef -\n \n \n RunAtLoad\n \n UserName\n root\n\n\n'); }).call(this); }).call(__obj); __obj.safe = __objSafe, __obj.escape = __escape; return __out.join(''); -} \ No newline at end of file +} diff --git a/src/templates/installer/cx.pow.firewall.plist.eco b/src/templates/installer/cx.pow.firewall.plist.eco index b7f1297..287eaa1 100644 --- a/src/templates/installer/cx.pow.firewall.plist.eco +++ b/src/templates/installer/cx.pow.firewall.plist.eco @@ -10,7 +10,7 @@ -c 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 - RunAtLoad