Subject: sharing a cable connection
To: None <netbsd-help@netbsd.org>
From: Louis <razbitum@yahoo.com>
List: netbsd-help
Date: 07/24/2001 15:36:28
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.
TIA
Louis.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/