Leopard: Activating ipfw at boot time

Daniel J. Luke dluke at geeklair.net
Tue May 20 07:32:08 PDT 2008


On May 20, 2008, at 5:32 AM, Vittorio wrote:
> Perhaps I'm a bit OT,

yes, you are :)

> How can I tell leopard to execute the ipfw.rules script automagically
> at each boot?


One way to do this, would be to create a launchd plist, something like  
this should work:

<?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>Debug</key>
         <false/>
         <key>Label</key>
         <string>my_firewall_rules</string>
         <key>OnDemand</key>
         <true/>
         <key>ProgramArguments</key>
         <array>
                 <string>/usr/local/sbin/firewall_rules.sh</string>
                 <string>start</string>
         </array>
         <key>RunAtLoad</key>
         <true/>
</dict>
</plist>

--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20080520/50349354/attachment.sig 


More information about the macports-users mailing list