Re: using linux with windows internet connection sharing

From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 09/16/04


Date: 16 Sep 2004 18:49:18 GMT

On Thu, 16 Sep 2004 20:41:16 +0100, Andy Baxter staggered into the Black
Sun and said:
> Dances With Crows said:
>> On Thu, 16 Sep 2004 19:29:40 +0100, Andy Baxter staggered into the
>> Black Sun and said:
>>> I'm setting up a linux machine on a small network that is using a
>>> windows machine to connect the network to the internet via a usb DSL
>>> modem. The linux machine is getting its IP address and gateway OK
>>> using DHCP, and the windows machine seems to be working right as a
>>> DNS relay (it returned an address for google)
>
>>> But when I ping google [from the Linux machine], nothing comes
>>> back. Pinging the gateway machine (192.168.0.1) does work.
>> So, what's in the Linux box's /etc/resolv.conf ?
> nameserver 192.168.0.1

> i.e. dhcp has set up the windows machine as a DNS relay. This does
> seem to be working - it returned an address for www.google.com [...]
> The problem is that pinging that address doesn't return anything.

Doesn't return anything? Not even "Destination Host Unreachable"?
Weird. "route -n" on the Linux machine should show something like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

The last line shows that all packets that aren't destined for the
192.168.0.0 network should be routed to 192.168.0.1 for delivery. Make
sure your route -n output looks correct; post it if you have questions.

You may also have to do the Windows equivalent of "echo 1 >
/proc/sys/net/ipv4/ip_forward" so that the 'Doze machine will forward
packets from the Linux machine to the wide Net and vice versa. I don't
know where exactly this setting might be under 'Doze though.

>> 'Doze ICS is supposed to set up a DHCP server on the 'Doze machine,
>> and that DHCP server is supposed to provide information
> That bit is working afaik - the linux box was being given an IP
> address and default route, and pinging the windows machine works OK.

OK, that's good. Now the problem is figuring out why packet forwarding
and/or IP-Masqing aren't working. This is *probably* a Windows problem.
I don't know very much about Windows ICS though. You may have better
luck on a Windows newsgroup.

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Problem with Ad-hoc wireless network Windows to Linux (no ping)
    ... I am trying to set up an ad-hoc wireless network between two ... After I have set them up I cannot ping the Linux machine from the ... Windows machine. ... I get no reports of connection problems. ...
    (comp.os.linux.networking)
  • Re: getting php to run as another user?
    ... Windows drive using smbmount from the Linux machine. ... But when I try this by uploading a file with my php script, ... The user "george" will have permission to write ...
    (alt.php)
  • Re: OT: Why PC is evil
    ... what.....you're one of those Mac snobs? ... Building a Linux machine takes little patience. ... If it weren't for my job, I'd never use Windows again, and I wouldn't ... Joe - Linux User #449481/Ubuntu User #19733 ...
    (alt.smokers.cigars)
  • Re: starting embedded linux debugging
    ... > some Windows CAD programs on a Linux machine. ... > exactly as if the host was running the embedded OS. ... world a lot of tools are fixed on Windows - things like CPLD ... > it's effectively connected to the network. ...
    (comp.os.linux.embedded)
  • Network Adapter Failure
    ... windows XP, i tried just about everything else. ... Pinging 200.89.159.1 with 32 bytes of data: ... Approximate round trip times in milli-seconds: ... Ping statistics for 24.232.0.69: ...
    (microsoft.public.windowsxp.network_web)