(Yet Another) Home Networking Question
rchopra at cal.berkeley.edu
Fri Dec 12 18:45:10 PST 2003
Here's my setup:
ISP FreeBSD Gateway Win2k Box
ALL DHCP 192.168.0.1 192.168.0.2
rl0 is connected to the modem by ethernet and set
for DHCP, the ISP's method of address asignment.
rl1 is the second NIC in the BSD box, and is connected
by crossover cable to the Win2k box.
FreeBSD box and Win2k box can successfully ping each
other, and FreeBSD box has working internet access.
Everything has been freshly rebooted.
Unfortunately, Win2k box cannot ping computers outside
the local network. I'd like to share my internet connection
(currently on my FreeBSD box only) with the Win2k box.
Using a few articles I found on Google Groups, I got as far
(0) Generic Kernel, machine enabled as gateway using sysinstall,
No firewall enabled (yet)
(1) in /etc/rc.conf, I added the following
natd_interface="rl0" ### public interface connected to cable modem
defaultrouter="192.168.0.1" ### LAN machines use this
ifconfig_rl0="DHCP" ### Astound uses dhcp
ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0" ### use for LAN
(2) in /etc/resolv.conf, DNS servers from ISP are listed automatically:
(3) in /etc/hosts, (within the netmask):
IP address 192.168.0.2
subnet mask 255.255.255.0
default gateway 192.168.0.1
preferred DNS server 126.96.36.199
alternate DNS server 188.8.131.52
What else do I need in order to get my Win2k box surfing?
More information about the freebsd-questions