Geekish Stuff

pun for geeks, stuff that doesn’t matter

Luis Azevedo

Mac OS X Airport Internet Sharing with Ubuntu with WEP

Have you ever tried Internet Sharing in Mac OS X for Ubuntu clients, using WEP? Did it work for you at the very first time? If not this post is for you… :)

I own a 3G HSDPA internet card for my Macbook Pro and I need to share my connection to my Ubuntu laptop.

Easy, you goto System Preferences, select Sharing icon and click “Internet Sharing” for computers using Airport. If you don’t use WEP to encrypt your Wireless connection you’ll have one open Access Point to the world. So I need to use WEP to secure my network since Mac OS X Leopard does not create wireless networks with encryption other than WEP… damn!

System Preferences

Ok, lets create the wireless network and place a password. The problem with this “password” is that when you try to use Ubuntu NetworkManager it simply doesn’t work. Still don’t know why, but I believe it’s a Mac OS X problem, since my Windows box doesn’t work either.

So instead of typing a simple password, use a hexadecimal WEP key. Let’s consider you choose a WEP key in hexadecimal form 1234567890. You need to create your network in Mac OS X with the following key: $1234567890

The “$” tells Mac OS X the key is in hexadecimal and not a simple pass phrase. Hexadecimal keys must be 10 chars wide for 40bit WEP or 26 chars wide for 128bit WEP.

Ubuntu NetworkManager

Now use the same key in Ubuntu and NetworkManager but without the “$“.

If everything went fine you’ll be able to share your internet connection.

Connection Established


Category: Mac, Tech

Tagged:

17 Responses

  1. Super. I had been trying in vain to get this to work. Finally it does.

    Thanks!

    [Reply]

  2. whoa says:

    genius!

    [Reply]

  3. Andrew L says:

    You are so awesome. This works perfectly! Thank you!

    [Reply]

  4. zamri says:

    I’m gonna try this. thanks a lot.

    [Reply]

  5. Martin says:

    works like a charm

    [Reply]

  6. Tibor says:

    Hi,

    Your post was extremely useful. However, I was not able to get it working with the firewall switched on on my Mac.
    Do you have any idea how to resolve it? I’m just scared to switch my security off even on a Mac.

    Thanks a lot,
    Tibor

    [Reply]

    braceta Reply:

    I’m without firewall too… If I found out, I’ll post it.

    [Reply]

  7. JC says:

    Did not help for me :(

    MY mac is connected to the net using PPP0E, would that make a difference?

    [Reply]

    braceta Reply:

    Shouldn’t make any difference. Can you enable Internet Sharing with some device connected to your ethernet port?

    The problem might be on the Internet Sharing and not on VMWare…

    [Reply]

  8. Ninety says:

    Awsome ! Thanks a lot ;) .

    What are the characters we can use ? 0 -> F ?

    [Reply]

  9. tatosh says:

    this is soooooooo awesome!!!
    thank you very much!!!!
    u r a genius!!!!!!

    [Reply]

  10. Chris Miller says:

    I’ve tried this and it’s not working. It just keeps asking me for my WEP key. Any idea?

    [Reply]

  11. Scooby Doo says:

    Also didn’t work for me initially (Ubuntu 9.10), though I got it working in the end. What seemed to solve the problem (?) was changing the network authentication in Ubuntu from ‘open system’ to ‘shared key’.
    In case you don’t know how to do this:
    - right-click wifi icon,
    - click ‘Edit Connections’,
    - click ‘Wireless’ tab,
    - select the wifi network that you created with your Mac and click ‘Edit’,
    - click the ‘Wireless Security’ tab
    - change ‘Authentication’ to ‘Shared Key’.

    Hope that helps somebody out there.

    [Reply]

    blibla Reply:

    This tip worked for me. For a 40 bits 5 char password. Thanks.

    [Reply]

  12. Ri says:

    Thank you so much! Worked perfectly. (With the shared key thing.)

    [Reply]

  13. This worked for me with with Mac Pro tower -> Ubuntu 10.4 // with Shared Key option checked.

    Thank you very much.

    [Reply]

Leave a Reply