also when you are done you can 'delete' the ipfw rule that you set up here as well when you are done. It might also be helpful to make sure that your rule number is not in use with ipfw list if you want to get fancy

Sam D
On Aug 1, 2006, at 7:53 PM, [EMAIL PROTECTED] wrote:

On Aug 01, 2006, at 22:51 UTC, Sam DeVore wrote:

here is how I have done it in the past

echo "passwordHere" | sudo -S /usr/sbin/sysctl -w
net.inet.ip.forwarding=1;sudo /sbin/ipfw add 102 fwd 127.0.0.1,
destinationPort tcp from any to sourceAddr sourcePort in;sudo -K

For the record, this works like a dream! I can execute the above in a shell (filling in appropriate values for destinationPort, sourceAddr, and sourcePort), right before calling ServerSocket.Listen, and now my app appears to all the world to be listening on the standard port. This is a very clean solution, which doesn't risk giving my app root privs, nor require mucking about with setuid bits, declares, or plugins.

Thanks, Sam!

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to