Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'does NOT work for me' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
does NOT work for me
Authored by: jaysoffian on Dec 09, '02 08:19:58PM

Finally, with a little help from ktrace, I figured out the last piece of the puzzle.

In /var/db/SystemConfigurations is a file called com.apple.nat.xml. If you
open this with Property List Editor (just type 'open com.apple.nat.xml from
the CLI), you'll see the property Root->NAT->Enabled is set to '0' when
Internet Sharing is off, and '1' when it is on.

It looks like what the Sharing pane does when you click 'Start' is to edit
this file, setting Enabled to 1, then it runs /usr/libexec/InternetSharing.

When I do this, InternetSharing starts properly for me. The Sharing pane
indicates that sharing has started and the airport icon in my menubar does
as well.

So, what to do? Just setup your prefs in the Sharing pane, start sharing, then
make a backup copy of this file. In the start script mentioned in this tip,
add an additional step to restore com.apple.nat.xml with the backup copy
you just made before running InternetSharing.

Good luck.



[ Reply to This | # ]