On OS X 10.6 you do not have
iptables, so what is the full solution for this permanently redirect all request sent to port 80 to another port, like 8080?
It has to be persistent.
Use ipfw as in @bindbn's answer. That's the general idea.
put your rules into a file :
add at the very top of your file
Ensure that there are not leading or trailing whitespaces in any line.
add to /Library/LaunchDaemons/com.yourdomain.ipfw.plist :
Either reboot, or
the first time.
After that it is
Use ipfw(read http://discussions.info.apple.com/message.jspa?messageID=10945451 http://discussions.apple.com/thread.jspa?messageID=10996939)
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?