Subject: Re: sharing a cable connection
To: Louis <razbitum@yahoo.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 07/25/2001 21:21:55
On Tue, Jul 24, 2001 at 03:36:28PM -0700, Louis wrote:
> 
>   Hi,
> 
> I ve got a small network at home and a cable
> connection that i d like to share.
> I had a look at the documentation but after several
> tries, it still doesn t work.
> 
> The gateway is a PC running NetBSD 1.5.1.. It has 2
> network interfaces : vr0 goes to the cable modem and
> vr1 (192.168.0.1) goes to the switch linked to my
> other 2 boxes (A PC running WinME (192.168.0.2) and a
> sparc running NetBSD 1.5.1_BETA (192.168.0.3))
> 
> I ve enabled the GATEWAY option in the kernel
> 
> my ipnat.conf :
> 
> map vr0 192.168.0.0/24  -> 0.0.0.0/32  proxy port ftp
> ftp/tcp
> map vr0 192.168.0.0/24  -> 0.0.0.0/32  portmap tcp/udp
> 1024:65535
> map vr0 192.168.0.0/24  -> 0.0.0.0/32
> 
> the 2 machines have been configured to use 192.168.0.1
> as a gateway
> 
> if i do a 'ping www.yahoo.com' from alis (192.168.0.2)
> and a 'tcpdump -i vr1' on the gateway, I get : 
> 
> 23:59:15.474145 alis.1036 > localhost.domain:  1+ A?
> www.yahoo.com. (31)
> 23:59:15.474243 localhost > alis: icmp: localhost udp
> port domain unreachable
> etc ....
> 
> I guess I must be missing something obvious, but I out
> of ideas.

alis is trying to read a name server on 'localhost' (Hum, this is
strange, why would traffic to localhost appear on the whire ... well,
it's windows after all. You may want to run tcpdump -n to check the
real IP used). So my guess is that on alis isn't configured to use a working
name server. You should be able to use your ISP's name server; you can also
set up a caching name server on your gateway (I think the default named.conf
does this).

--
Manuel Bouyer <bouyer@antioche.eu.org>
--