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.

I have an Ubuntu PC (IP: 132.195.2.2) set up which should be connecting through a switch to my iMac (IP: 132.195.2.1) in order to gain internet access. The iMac has "share internet connection" turned on. I've added the iMac's IP in the gateway, DNS and search domain field in the configuration for the eth0 on the Ubuntu PC. I also added the iMac's IP as proxy for all services. They can ping each other PC/Mac, but the only thing my Ubuntu PC gets when calling any URL is my addressbook server web admin page.

Any idea what I've done wrong or how to set this up the right way?

share|improve this question
    
How does the mac get an internet connection, same ethernet port? –  hobs Apr 18 '11 at 17:12
    
no the mac gets it from it's airport and shares it to the ethernet connection –  Benedikt Wutzi Apr 18 '11 at 17:36
    
Did some other article tell you to change the dns, gateway, search domain, proxy etc? What if all that were default, as when the mac is sharing it is supposed to have a rudimentary dhcp server and forward dns requests properly. –  hobs Apr 18 '11 at 20:07
add comment

2 Answers 2

The mac firewall must be disabled for this to work.

You can follow this guide if needed for NAT setup on the mac and verification of ubuntu settings.

share|improve this answer
add comment

The problem is that your Ubuntu PC is not getting correct DNS information.

On the Ubuntu PC, remove any settings you may have added for the iMac. Let it grab all the details automatically from the iMac.

It should just work(tm).

It won't work properly if network settings are changed on the client machine as the sharing system sends client machines all the correct IP and DNS details.

share|improve this answer
    
How can that work without a dhcp server on any of the ethernet connections? Does the iMac automaticly act as dhcp server when it's set to share it's connection? –  Benedikt Wutzi Apr 19 '11 at 7:27
1  
Yes it sure does! –  RobZolkos Apr 19 '11 at 7:52
    
ok cool. I'll try this –  Benedikt Wutzi Apr 19 '11 at 11:30
    
Well I just changed everything on the Ubuntu machine back to blank and dhcp. It doesn't work. I can ping the iMac but nothing else answers me. –  Benedikt Wutzi Apr 20 '11 at 15:21
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.