Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Macbook Pro Running 10.7.4 attempting to share ethernet connection via Airport(Wi-Fi) and trying to serve 192.168.1.x addresses to connected clients.

I've tried the guidance provided here and the subsequent article listed here and my com.apple.nat file has the following:

NAT =     {
    AirPort =         {
        40BitEncrypt = 0;
        Channel = 0;
        Enabled = 0;
        Extreme = "";
        NetworkName = *****;
        NetworkPassword = <*****>;
    };
    Enabled = 1;
    NatPortMapDisabled = 0;
    PrimaryInterface =         {
        Device = en0;
        Enabled = 0;
        HardwareKey = "";
        PrimaryUserReadable = Ethernet;
    };
    PrimaryService = "352E1799-A5BD-45F7-8C1C-49A963899CFC";
    SharingDevices =         (
        en1
    );
    SharingNetworkNumberStart = "192.168.1.0";
};

But no dice. ifconfig still shows en1 as 10.0.2.1 I've rebooted, made sure System Preferences was closed. en1 up'd and down'd

I'm guessing I need to be modifying a different file. I've looked at the binary for InternetSharing but it has way too much cruft in the file for me to confidently edit it.

Any help? Thanks!

share|improve this question
add comment

1 Answer 1

Apparently, as you say, you need to modify the InternetSharing file, adding:

<key>AirPort</key>
        <dict>
            <key>40BitEncrypt</key>
            <integer>0</integer>
            <key>Channel</key>
            <integer>0</integer>
            <key>Enabled</key>
            <integer>1</integer>
            <key>Extreme</key>
            <string></string>
            <key>NetworkName</key>
            <string>imacnet</string>
            <key>NetworkPassword</key>
            <data>cwB0AHUAYQByAA==</data>
            <key>SharingNetworkNumberStart</key>
            <string>10.0.99.0</string>
        </dict>

It seems pretty straight forward.

share|improve this answer
    
I wish it were as straight forward as it appears. The InternetSharing file mentioned is a binary file and not an easily editable plist. Looking at it with vim is a mess. The standard InternetSharing.plist file does not appear to manage the Airport configuration. Instead it has an argument which called the InternetSharing binary file. I'm looking for a clean way to edit the binary file. –  syncr May 31 '12 at 17:13
    
You are right, it's a hell of a mess. Couldn't try it until now. I'll keep searching, though. –  Thecafremo May 31 '12 at 19:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.