(Yet Another) Home Networking Question
Rishi Chopra
rchopra at cal.berkeley.edu
Fri Dec 12 18:45:10 PST 2003
Here's my setup:
ISP FreeBSD Gateway Win2k Box
>----------rl0--------------rl1-------------------<
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
as this:
FreeBSD Machine:
(0) Generic Kernel, machine enabled as gateway using sysinstall,
No firewall enabled (yet)
(1) in /etc/rc.conf, I added the following
natd_enable="YES"
natd_interface="rl0" ### public interface connected to cable modem
gateway_enable="YES"
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
hostname="idfubar.dyndns.org"
(2) in /etc/resolv.conf, DNS servers from ISP are listed automatically:
nameserver 64.85.239.11
nameserver 64.85.239.2
(3) in /etc/hosts, (within the netmask):
192.168.0.1 idfubar.dyndns.org
192.168.0.2 computer.dyndns.org
Win2k Machine:
(1) start-network&dialupConnections
-localareaconnection
-properties
-TCP/IP-properties:
IP address 192.168.0.2
subnet mask 255.255.255.0
default gateway 192.168.0.1
preferred DNS server 64.85.239.11
alternate DNS server 64.85.239.2
What else do I need in order to get my Win2k box surfing?
More information about the freebsd-questions
mailing list