From owner-freebsd-questions Wed Mar 8 17:13:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.twave.net (twave.net [206.100.228.5]) by hub.freebsd.org (Postfix) with SMTP id DD12637B6D1 for ; Wed, 8 Mar 2000 17:13:34 -0800 (PST) (envelope-from brameld@twave.net) Received: from [12.21.241.164] by mail.twave.net (NTMail 3.03.0018/1.abwg) with ESMTP id da051795 for ; Wed, 8 Mar 2000 20:13:22 -0500 Received: from Bozo_3.BozoLand.domain (localhost [127.0.0.1]) by Bozo_3.BozoLand.domain (8.9.3/8.9.3) with SMTP id UAA00531; Wed, 8 Mar 2000 20:13:03 -0500 (EST) (envelope-from brameld@twave.net) From: Walter Brameld To: Jeremy Falcon , freebsd-questions@freebsd.org Subject: Re: gateway Date: Wed, 8 Mar 2000 19:50:03 -0500 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <00030814551000.01433@local.imputek.com> In-Reply-To: <00030814551000.01433@local.imputek.com> MIME-Version: 1.0 Message-Id: <0003082013030A.00362@Bozo_3.BozoLand.domain> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 08 Mar 2000, in a never-ending search for enlightenment, Jeremy Falcon wrote: > I'm running FreeBSD 3.3-RELEASE, and I'm trying to get it to act as a gateway > for my Windows 2000 box. I can get online fine from my FreeBSD using Kernel > PPP (pppd). > > I already have gateway_enable="YES" in /etc/rc.conf but it still doesn't work. > My Windows 2000 box has the IP of my FreeBSD box for it's default gateway > for the LAN connection. The Pedantic PPP Primer on FreeBSD.org says that I > should use 'ppp -alias' to allow this, but that is for user PPP. > > Also, I used ms_dns in /etc/ppp/options (using my ISPs DNS servers)... > > ms_dns "216.115.128.33" > ms_dns "216.115.128.10" > > ... I'm about to try it without the quotes > > As far as I'm aware the LAN is ok, because I can telnet, ftp, ping, etc. to > each computer, but my Windows box can't see the outside world when my FreeBSD > box is online. > > Could someone please guide me in the right direction? > > Thanks, > > Jeremy L. Falcon Givens: Boxes ip addresses interface ----------------------------------- my.box.domain 192.168.0.1 Intel fxp0 his.box.domain 192.168.0.2 her.box.domain 192.168.0.3 ISP DNS Servers ------------- 216.115.128.33 216.115.128.10 Modem on /dev/cuaa0 File /etc/rc.conf: hostname="my.box.domain" network_interfaces="lo0 fxp0" ifconfig_lo0="inet 127.0.0.1 ifconfig_fxp0="inet 192.168.0.1 netmask 255.255.255.0" gateway_enable="yes" File /etc/hosts: 127.0.0.1 localhost 192.168.0.1 my.box.domain my 192.168.0.2 his.box.domain his 192.168.0.3 her.box.domain her File /etc/ppp/ppp.conf default: set device /dev/cuaa0 set log Phase Chat LCP IPCP CCP tun command set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns # <- You missing this? Very important. twave1: # I happen to use The Wave for an ISP, hence the label name. set phone xxxxxxx set authname username set authkey password You may want to look into the files ppp.linkup and ppp.linkdown on your own. This SHOULD get you up and running. For a persistent connection, use the command: ppp -ddial -nat twave1 For on-demand, I believe it's: ppp -auto -nat twave1 If you get tired of doing it manually, put these lines in /etc/rc.conf and that sucker will run itself automagically on boot-up: ppp_enable="YES" ppp_mode="ddial" # <- or "auto" ppp_nat="YES" ppp_profile="twave1" Hope this helps. -- Walter Brameld Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? Walter: Where the hell am I? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message