Skip to content

Instantly share code, notes, and snippets.

@bruienne
Created April 4, 2016 18:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruienne/9d48b38c12569d0ddc151fda7750aa77 to your computer and use it in GitHub Desktop.
Save bruienne/9d48b38c12569d0ddc151fda7750aa77 to your computer and use it in GitHub Desktop.
Sample LD to load a custom ruleset without modifying Apple's standard PF config
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple Computer/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>myorg.pf.plist</string>
<key>Program</key>
<string>/usr/local/bin/pfstart.sh</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/pfstart.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/log/pf.log</string>
<key>StandardOutPath</key>
<string>/var/log/pf.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment