Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created May 21, 2012 18:11
Show Gist options
  • Save LnL7/2763681 to your computer and use it in GitHub Desktop.
Save LnL7/2763681 to your computer and use it in GitHub Desktop.
PList: IPfw rules
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>me.apple.ipfw</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>ipfw add fwd 00100 &amp;&amp; ipfw add fwd 00101</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>root</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment