Subject: NetBSD Gateway with dynamic IP
To: None <netbsd-help@netbsd.org>
From: daniel veiga <danieldvv@yahoo.com.br>
List: netbsd-help
Date: 02/08/2007 11:25:00
Hello,

I have this configuration of my home-network:

Netbsd 3.0
my kernel was net.inet.ip.forwading=1

ex0
ip 192.168.1.1 - its my internal network, this IP i
put manually, connect with xinXP

vr0
ip dynamic (internet link) - I get the IP through the
command: $sudo dhclient

My ipnat.conf is
map ex0 192.168.1.0/24 -> 0/32 portmap tcp/udp
40000:60000
map ex0 192.168.1.0/24 -> 0/32
i tried to put vr0 and does not work to.

to up ipnat.conf, i use this command: sudo
/etc/rc.d/ipnat start

WinXP
ip 192.168.1.3
netmask 255.255.255.0
Gateway 192.168.1.1
DNS - i dont put any value, but i have tried to put
192.168.1.1 and does not works to.

the machines can be ping ---- NetBSD to WinXP and
WinXP to NetBSD

but the link of internet dont work.

Thanks for help

__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/