Overclock.net banner

1 - 2 of 2 Posts

·
Registered
Joined
·
1 Posts
Discussion Starter #1
I'm trying to set up an internet gateway on a machine running NetBSD 3.0. I've looking into other forums and posts, and discovered that I'm supposed to use 'ipnat' to configure the gateway. I've edited my ipnat.conf file, and the contents are listed below.

map fxp0 192.168.1.1/24 -> 192.168.0.103/32 portmap tcp/udp 40000:60000
map fxp0 192.168.1.1/24 -> 192.168.0.103/32

"fxp0" is the interface of the interior network card (not connected to the internet) which i have manually assigned ip 192.168.1.1, netmask 255.255.255.0. The other ip, 192.168.0.103 has been statically assigned to the exterior network card by my d-link router dhcp. I have also made sure that i have set "sysctl -w net.inet.ip.forwarding=1"

The dhcp server on my NetBSD machine works fine, and it assigns an ip to my Windows XP laptop on the "interior" of the network. However, it does not give the Windows machine a gateway - the gateway field shows nothing after typing 'ipconfig /all' and I cannot ping neither 192.168.0.103 or any internet domain name.

If anyone has any advice on how to get this working, or any other useful websites that I can refer to, I'd appreciate your input. I've given up poring over man pages and the like. Thanks much.

-DM
 
1 - 2 of 2 Posts
Top