Copy this file to: /Library/LaunchDaemons/fwd-80-to-3000.plist
and then reboot:
$ sudo -s
$ curl https://raw.github.com/gist/3372589/fwd-80-to-3000.plist > /Library/LaunchDaemons/fwd-80-to-3000.plist
$ reboot
<?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>fwd-80-to-3000</string> | |
<key>KeepAlive</key> | |
<false/> | |
<key>OnDemand</key> | |
<false/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>LaunchOnlyOnce</key> | |
<true/> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/sbin/ipfw</string> | |
<string>add</string> | |
<string>fwd</string> | |
<string>127.0.0.1,3000</string> | |
<string>tcp</string> | |
<string>from</string> | |
<string>any</string> | |
<string>to</string> | |
<string>any</string> | |
<string>80</string> | |
<string>in</string> | |
</array> | |
</dict> | |
</plist> |