From owner-freebsd-questions@FreeBSD.ORG Tue Jul 13 16:54:26 2004 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 3D48416A4CE for ; Tue, 13 Jul 2004 16:54:26 +0000 (GMT) Received: from home.mnet.bg (home.mnet.bg [193.110.223.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5487243D4C for ; Tue, 13 Jul 2004 16:54:25 +0000 (GMT) (envelope-from dpenev@mnet.bg) Received: from localhost (home [127.0.0.1]) by home.mnet.bg (Postfix) with ESMTP id C3E233B31C; Tue, 13 Jul 2004 19:54:23 +0300 (EEST) Received: from venus.dpsca.bg (ip220-81.mnet.bg [193.110.220.81]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by home.mnet.bg (Postfix) with ESMTP id 518FA3B30F; Tue, 13 Jul 2004 19:54:21 +0300 (EEST) Received: from freebsd.vmware.dpsca.bg (freebsd.vmware.dpsca.bg [192.168.2.5]) by venus.dpsca.bg (8.12.11/8.12.11) with ESMTP id i6DGunnd024741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Jul 2004 19:56:50 +0300 (EEST) Received: (from dpenev@localhost) by freebsd.vmware.dpsca.bg (8.12.11/8.12.11/Submit) id i6DGuVeu000696; Tue, 13 Jul 2004 19:56:31 +0300 (EEST) (envelope-from dpenev) Date: Tue, 13 Jul 2004 19:56:30 +0300 From: Dancho Penev To: "James A. Coulter" Message-ID: <20040713165630.GA541@freebsd.vmware.dpsca.bg> References: <001901c468f1$3e99f260$0300a8c0@sabrina> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <001901c468f1$3e99f260$0300a8c0@sabrina> User-Agent: Mutt/1.4.2.1i X-Virus-Scan: smtp-vilter X-SMTP-Vilter-Version: 1.1.5 X-SMTP-Vilter-Backend: vilter-clamd X-SMTP-Vilter-Status: clean X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian GNU/Linux) at mail.mnet.bg cc: freebsd-questions@FreeBSD.ORG Subject: Re: NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem 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: Tue, 13 Jul 2004 16:54:26 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 13, 2004 at 10:51:21AM -0500, James A. Coulter wrote: >From: "James A. Coulter" >To: >Date: Tue, 13 Jul 2004 10:51:21 -0500 >Subject: NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem > >I am trying to setup my FreeBSD 4.10 box as an internet gateway for a small >home LAN (2x Win XP and 1x Win 98SE) > >The LAN operates without any problems when using the Win 98SE box as a >gateway - all computers can access the internet > >I have two nics installed in the FreeBSD box: > > dc0 is the LAN interface via 4-port Linksys hub > > dc1 is the WAN interface via cable modem > >I have successfully connected to the internet with dc1 > >I can ping all other machines on my home LAN with dc0 and vice versa > >I cannot access the internet from any machine except the FreeBSD gateway > >ifconfig looks like this: > >dc0: flags=3D8843 mtu 1500 > inet6 fe80::204:5aff:fe76:55f0%dc0 prefixlen 64 scopeid 0x1 > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:04:5a:76:55:f0 > media: Ethernet autoselect (100baseTX ) > status: active >dc1: flags=3D8843 mtu 1500 > inet6 fe80::2a0:ccff:fe33:e1f6%dc1 prefixlen 64 scopeid 0x2 > inet 68.105.58.150 netmask 0xfffffe00 broadcast 68.105.59.255 > ether 00:a0:cc:33:e1:f6 > media: Ethernet autoselect (100baseTX ) > status: active >lp0: flags=3D8810 mtu 1500 >lo0: flags=3D8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > inet 127.0.0.1 netmask 0xff000000 >ppp0: flags=3D8010 mtu 1500 >sl0: flags=3Dc010 mtu 552 >faith0: flags=3D8002 mtu 1500 > > >The contents of /etc/rc.conf are: > >hostname=3D"sara.mshome.net" >ifconfig_dc0=3D"inet 192.168.1.1 netmask 255.255.255.0" ifconfig_dc1=3D"DH= CP" > inetd_enable=3D"YES" gateway_enable=3D"YES" > >When I try to ping an outside address from a Windows box, I get this >response: > >"Ping request could not find host www.freebsd.org. Please check the name a= nd >try again." > >When I try to ping a known good URL, I get this response: > >Pinging 68.99.63.5 with 32 bytes of data: > >Request timed out. > >Ping statistics for 68.99.63.5: > > Packets: Sent =3D 4, Received =3D 0, Lost =3D 4 (100% loss) > >I have tried setting the DNS servers on the Windows box to the addresses >listed in /etc/resolv.conf: > >68.105.161.20 >68.1.18.25 >68.10.16.30 > >I have also tried setting the DNS address directly to the default gateway >192.168.1.1 and get the same response. > >While searching around in /stand/sysinstall I found the named daemon >enabled. I disabled with no change (I have since re-enabled it because I >believe that was the default setting when I installed FreeBSD) > >FWIW, here's output of netstat -rn on the FreeBSD box: > >Internet: >Destination Gateway Flags Refs Use Netif Expire >default 68.105.58.1 UGSc 2 3 dc1 >68.105.58/23 link#2 UC 2 0 dc1 >68.105.58.1 00:06:2a:cb:7c:54 UHLW 2 0 dc1 1199 >68.105.58.150 127.0.0.1 UGHS 0 0 lo0 >127.0.0.1 127.0.0.1 UH 2 26 lo0 >192.168.1 link#1 UC 1 0 dc0 >192.168.1.110 00:08:74:3b:8b:ba UHLW 0 4 dc0 1081 > >Internet6: >Destination Gateway Flags >Netif Expire >::/96 ::1 UGRSc >lo0 >::1 ::1 UH >lo0 >::ffff:0.0.0.0/96 ::1 UGRSc >lo0 >fe80::/10 ::1 UGRSc >lo0 >fe80::%dc0/64 link#1 UC >dc0 >fe80::204:5aff:fe76:55f0%dc0 00:04:5a:76:55:f0 UHL >lo0 >fe80::%dc1/64 link#2 UC >dc1 >fe80::2a0:ccff:fe33:e1f6%dc1 00:a0:cc:33:e1:f6 UHL >lo0 >fe80::%lo0/64 fe80::1%lo0 Uc >lo0 >fe80::1%lo0 link#4 UHL >lo0 >ff01::/32 ::1 U >lo0 >ff02::/16 ::1 UGRS >lo0 >ff02::%dc0/32 link#1 UC >dc0 >ff02::%dc1/32 link#2 UC >dc1 >ff02::%lo0/32 ::1 UC >lo0 > >And the results of netstat -rn on the Windows box: > >Active Routes: >Network Destination Netmask Gateway Interface Metric > 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.110 20 > 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 > 192.168.1.0 255.255.255.0 192.168.1.110 192.168.1.110 20 > 192.168.1.110 255.255.255.255 127.0.0.1 127.0.0.1 20 > 192.168.1.255 255.255.255.255 192.168.1.110 192.168.1.110 20 > 224.0.0.0 240.0.0.0 192.168.1.110 192.168.1.110 20 > 255.255.255.255 255.255.255.255 192.168.1.110 192.168.1.110 1 >Default Gateway: 192.168.1.1 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >Persistent Routes: > None > >I'm not sure what to do next. For some reason the Windows cannot access a >name server. From what I understand from the literature I've been using >(FreeBSD Handbook, Lehey's The Complete FreeBSD, and Anderson's FreeBSD: An >Open-Source etc etc) all that should be needed is set gateway_enable=3D"YE= S" >in /etc/rc.conf and I've done that. > >Google revealed some info on using natd for PPOE, but not sure if that >applies to this problem. Definitely you must use NAT. Search Handbook for Network Address Translation. > >All suggestions/out-right solutions appreciated. > >TIA, > >Jim C. =20 > > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" > --=20 Dancho Penev GnuPG public key: http://www.mnet.bg/~dpenev/gnupg.asc Key fingerprint: E88D 8B7B 3EF6 E9C8 C5D2 7554 2AA8 C347 71A1 4277 --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA9BQ+KqjDR3GhQncRAn8OAJ9myUiIFbsqApYD/drmlUTO4P2pGwCghpPg ZthfhQc02BiV/C8GaZ3UJi0= =9+mA -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--