From owner-freebsd-questions Wed Mar 8 18:34:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gw-hk1.philips.com (gw-hk1.philips.com [202.130.151.66]) by hub.freebsd.org (Postfix) with ESMTP id 6060A37B699 for ; Wed, 8 Mar 2000 18:34:31 -0800 (PST) (envelope-from lawrence.hy.cheung@philips.com) Received: from smtprelay-hk1.philips.com (localhost.philips.com [127.0.0.1]) by gw-hk1.philips.com with ESMTP id KAA15144; Thu, 9 Mar 2000 10:34:24 +0800 (HKT) (envelope-from lawrence.hy.cheung@philips.com) From: lawrence.hy.cheung@philips.com Received: from smtprelay-asp1.philips.com(130.147.65.5) by gw-hk1.philips.com via mwrap (4.0a) id xma015142; Thu, 9 Mar 00 10:34:24 +0800 Received: from APLMS01.DIAMOND.PHILIPS.COM (aplms01sv1.diamond.philips.com [130.147.79.213]) by smtprelay-hk1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id KAA23759; Thu, 9 Mar 2000 10:34:23 +0800 (HKT) Received: by APLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi via APAC id 0056920005123531; Thu, 9 Mar 2000 10:34:00 +0800 To: Cc: Subject: Re: gateway Message-ID: <0056920005123531000002L212*@MHS> Date: Thu, 9 Mar 2000 10:34:00 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="MEMO 03/09/00 10:33:35" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello jeremy, You problem is due to no 'IP masqurade' function in pppd daemon! For kernel mode ppp daemon (pppd), as far as I know, you need to config= ure 'natd' plus 'ipfw' for IP alias service. Another choice is ' IP Filter'. FreeBSD provides both in base system bu= t you need to rebuild kernel to enable them. In my exprience, I cannot discover the diffrence of performance between= 'pppd' & 'ppp'. However, user mode ppp=20 is much easy than pppd for configuring IP aliasing (IP masqurade) so th= an I choose ppp now. Moreover, you can launch 'ppp' at the ' rc.conf ' processing phase of e= very boot. Please check /etc/defaults/rc.conf. Regards, Lawrence H.Y. Cheung P.S. Please read pppd mannual page "man pppd", to confirm it supports '= IP masquerade' or not For building firewall with user mode 'ppp', I like 'IP Filter'= rather than 'ipfw'. jeremy@intersurf.com@SMTP@FreeBSD.ORG on 03/09/2000 04:13:32 AM Sent by: owner-freebsd-questions@FreeBSD.ORG To: freebsd-questions@freebsd.org@SMTP cc: =20 Subject: gateway Classification: Restricted I'm running FreeBSD 3.3-RELEASE, and I'm trying to get it to act as a g= ateway for my Windows 2000 box. I can get online fine from my FreeBSD using K= ernel PPP (pppd). I already have gateway_enable=3D"YES" in /etc/rc.conf but it still does= n't work. My Windows 2000 box has the IP of my FreeBSD box for it's default gatew= ay for the LAN connection. The Pedantic PPP Primer on FreeBSD.org says th= at 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 F= reeBSD box is online. Could someone please guide me in the right direction? Thanks, Jeremy L. Falcon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message = To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message