Created
June 8, 2015 12:50
-
-
Save sporkmonger/3a3673c07f2b5da85ed3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rdr pass proto tcp from any to any port {80,20559} -> 127.0.0.1 port 20559 | |
anchor "250.PowFirewall/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Default PF configuration file. | |
# | |
# This file contains the main ruleset, which gets automatically loaded | |
# at startup. PF will not be automatically enabled, however. Instead, | |
# each component which utilizes PF is responsible for enabling and disabling | |
# PF via -E and -X as documented in pfctl(8). That will ensure that PF | |
# is disabled only when the last enable reference is released. | |
# | |
# Care must be taken to ensure that the main ruleset does not get flushed, | |
# as the nested anchors rely on the anchor point defined here. In addition, | |
# to the anchors loaded by this file, some system services would dynamically | |
# insert anchors into the main ruleset. These anchors will be added only when | |
# the system service is used and would removed on termination of the service. | |
# | |
# See pf.conf(5) for syntax. | |
# | |
scrub-anchor "com.apple/*" | |
scrub-anchor "cx.pow/*" | |
nat-anchor "com.apple/*" | |
nat-anchor "cx.pow/*" | |
rdr-anchor "com.apple/*" | |
rdr-anchor "cx.pow/*" | |
dummynet-anchor "com.apple/*" | |
dummynet-anchor "cx.pow/*" | |
anchor "com.apple/*" | |
anchor "cx.pow/*" | |
load anchor "com.apple" from "/etc/pf.anchors/com.apple" | |
load anchor "cx.pow" from "/etc/pf.anchors/cx.pow" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment