port forwarding, OS-X
R. Scott Granneman
scott at granneman.com
Fri Nov 28 13:39:11 PST 2003
Create a document named "portforward" with the following 2 lines in it
(I've numbered the lines to take care of wrapping, so remove the numbers
when you type it out):
1 /usr/sbin/sysctl -w net.inet.ip.forwarding=1
2 /sbin/ipfw add 102 fwd 127.0.0.1,8080 tcp from any to 123.123.123.123
80 in
In line 2, replace the 123.123.123.123 with your server's IP address.
Line 2 also assumes that you told Frontier to run its Web server on port
8080.
Make the script executable by typing the following:
sudo chmod 744 portforward
Place the script in /Library/StartupItems & reboot to test. Voila!
Scott
Bob Raiselis wrote:
> I'm fussing with a new OS-X installation, and am trying to sort out the
> port forwarding issue. I know that there is a script that can be run with
> each restart that sets the port forwarding from 80 to 8080, but it
> appears that needs a root password to run. I'd prefer something automatic
> so that a power failure doesn't require someone to be there to
> authenticate the port forwarding.
>
> Is there some better way to do this? Is there a pref file somewhere in
> OS-10 that can be edited to make this change permanent?
>
> Bob
>
--
R. Scott Granneman
scott at granneman.com ~ www.granneman.com
Join GranneNotes! Information at www.granneman.com
"... any man's death diminishes me, because I am involved in mankind,
and therefore never seek to know for whom the bell tolls; it tolls for
thee."
---John Donne
More information about the Frontier-Users
mailing list