It appears you can turn the Leopard firewall on or from the command line with this command:
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
The last value represents the state of the firewall, where:
Mac OS X Hints
http://hints.macworld.com/article.php?story=20080110103812947