Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Dec 2003 22:57:14 -0500
From:      "fbsd_user" <fbsd_user@a1poweruser.com>
To:        "Rishi Chopra" <rchopra@cal.berkeley.edu>, <questions@freebsd.org>
Subject:   RE: (Yet Another) Home Networking Question
Message-ID:  <MIEPLLIBMLEEABPDBIEGGEHNFAAA.fbsd_user@a1poweruser.com>
In-Reply-To: <3FDA7D20.1010904@cal.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
  hostname="idfubar.dyndns.org"  is wrong.
This needs to be a fake domain name.
Dyndns.org is real name.

Hostname="idfubar.fbsdhome.com"  is better.


To enable NATD you need ipfw firewall.
These two statements are options for IPFW/Nated.
Your win box can not reach public internet because
it's private ip address is non-routable on the
public internet, that why they are reserved for LANs.
1) in /etc/rc.conf, I added the following
  natd_enable="YES"
  natd_interface="rl0" ### public interface connected to cable modem

IPFW is not the firewall for the newbe, IPFILTER/IPNAT is easier.
I have how-to if you are interested.

BY the way you did real good job documenting your problem. Thanks

-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Rishi
Chopra
Sent: Friday, December 12, 2003 9:45 PM
To: questions@freebsd.org
Subject: (Yet Another) Home Networking Question

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?
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGGEHNFAAA.fbsd_user>