From owner-freebsd-questions@FreeBSD.ORG Fri Dec 12 18:45:10 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FCEF16A4CE for ; Fri, 12 Dec 2003 18:45:10 -0800 (PST) Received: from m00.ca.astound.net (m00.ca.astound.net [64.85.239.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1734E43D09 for ; Fri, 12 Dec 2003 18:45:09 -0800 (PST) (envelope-from rchopra@cal.berkeley.edu) Received: from cal.berkeley.edu (astound-66-234-212-148.ca.astound.net [66.234.212.148]) by m00.ca.astound.net (8.12.10/8.12.10) with ESMTP id hBD2hDiB024630 for ; Fri, 12 Dec 2003 18:43:13 -0800 Message-ID: <3FDA7D20.1010904@cal.berkeley.edu> Date: Fri, 12 Dec 2003 18:44:48 -0800 From: Rishi Chopra User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Subject: (Yet Another) Home Networking Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2003 02:45:10 -0000 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?