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. Persistence: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.
rinetdbecause it is so simple I thought it would compile anywhere, but there does not seem to be a port to OS X, unfortunately... – Nicolas Raoul Sep 22 '10 at 11:55<Location />\nProxyPass http://localhost:8080/\n</Location>(where\nis a newline), and then enable "Internet Sharing" in System Preferences. – Tobias Jul 3 '12 at 1:44