(Yet Another) Home Networking Question
fbsd_user
fbsd_user at a1poweruser.com
Fri Dec 12 19:57:17 PST 2003
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 at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Rishi
Chopra
Sent: Friday, December 12, 2003 9:45 PM
To: questions at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list