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)
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.