1
I have a Mac with WiFi connected to a router, internet works just fine there. I also have a PC with Linux Mint, and no wireless network card, so I connected them with a cable one to the other. Have enabled internet sharing at the Mac. I have also run sudo sysctl -w net.inet.ip.forwarding=1
and sudo sysctl -w net.link.ether.inet.proxyall=1
Now they have their own LAN - from the Linux machine I can connect to the default gateway (192.168.3.1) and I see a webpage I setup on the mac which only displays "It works". But when I try to connect from the Linux machine to somewhere else I don't get a respond. For example when I try to get to the router at 192.169.2.1 the Linux fails, and the Mac displays the routers login page. Notice, they are on different LANs, since the network-mask is 255.255.255.0 (for both).
I don't really care if at the end they'll be connected at the same LAN or not. I just want the Linux machine to have internet access.
I did the
route
command now, the nameservers seem to bee OK. But still the same. And I don't think that nameservers are the problem, since I cannot reach my router at 192.168.2.1. – Ramzi Kahil – 2013-11-30T14:48:18.487@Martin The reason why I asked about DNS is that, if you are able to reach your gateway, now I would like to know whether you can reach any outside site, not an internal one. Can you? – MariusMatutiae – 2013-11-30T15:27:04.737
Well the physical connection goes like this PC->Mac->home router. From the PC I can reach the Mac, but not the home router. – Ramzi Kahil – 2013-11-30T16:02:59.667
I thought you said you could reach 192.168.3.1, and I had thought that was your home router. Could you please post the routing tables and ifconfig for both host and guest? – MariusMatutiae – 2013-11-30T16:28:04.503