From owner-freebsd-questions Thu Nov 15 1:25:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by hub.freebsd.org (Postfix) with ESMTP id B465337B41A for ; Thu, 15 Nov 2001 01:25:07 -0800 (PST) Received: from columbia ([12.93.208.94]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20011115092506.HDAQ4554.mtiwmhc22.worldnet.att.net@columbia>; Thu, 15 Nov 2001 09:25:06 +0000 From: "Andrew C. Hornback" To: "Anthony Atkielski" , , Subject: RE: DSL PPPoE with 2 NICs Date: Thu, 15 Nov 2001 04:24:57 -0500 Message-ID: <005401c16db7$6491bd00$6600000a@ach.domain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <003001c16db5$6c953330$0a00000a@atkielski.com> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Note: Reply text moved to bottom to preserve context. > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Anthony > Atkielski > Sent: Thursday, November 15, 2001 4:11 AM > To: freebsd-questions@FreeBSD.ORG; jacks@sage-american.com > Subject: Re: DSL PPPoE with 2 NICs > > > We have a small LAN about to be set up on a DSL connection which is > > activated. The LAN is currently sharing an ISDN Internet connection (not > > used for incoming remotes). The gateway machine (192.168.0.1) is running > > Win2K. There are several Win2K stations on the LAN and a couple > of FreeBSDs > > running 4.4, on manually assigned. The DSL is an external modem > via PPPoE. > > The LAN is connected via Hub. Each box has a RealTek 8139 on device rl0. > > > > We want to install the DSL in one of the FreeBSD boxes > (192.168.0.202) to > > use with the > > DSL (and change to the gateway in place of the Win2K). here's how the > > ifconfig -a > > looks now: > > > > ********************************************************************* > > rl0: flags=8843 mtu 1500 > > inet6 fe80::240:33ff:fe57:92dd%rl0 prefixlen 64 scopeid 0x1 > > inet 192.168.0.202 netmask 0xffffff00 broadcast 192.168.0.255 > > ether 00:40:33:57:92:dd > > media: Ethernet autoselect (100baseTX ) > > status: active > > lp0: flags=8810 mtu 1500 > > ppp0: flags=8010 mtu 1500 > > sl0: flags=c010 mtu 552 > > faith0: flags=8000 mtu 1500 > > lo0: flags=8049 mtu 16384 > > inet6 ::1 prefixlen 128 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 > > inet 127.0.0.1 netmask 0xff000000 > > ********************************************************************* > > > > A second NIC card (D-Link DFE-530TX+) will be added for the DSL > modem and > > it loads as > > device r11 (without modem connected yet). > > > > The "tun" devices are made and ready.... and 4.4 loads netgraph > support I > > believe without need to build into the kernel. > > > > QUESTION: > > Does anyone listening have a similar setup as planned > above...DSL PPP over > > PPPoE with two NICs (1 for the modem and 1 for the LAN) and if so, may I > > see your ppp.conf file... and what else should I worry about? > > > > I have read all of the many papers/guides (including Renaud Waldura's > > paper). Any added tips would be VERY welcome as I really want to use BSD > > rather than Win2K..... many t > > Instead of a second NIC, add a DSL router (a router that is > designed to have a > DSL modem on one side and your LAN on the other) to your LAN and > use it as your > gateway. Only about $100, and the money you spend on it will > cost much less > than the time you'd spend configuring one of your machines to act > as a gateway. > More secure, too (there are far fewer potential holes in a simple > router than in > a full OS running as a gateway). I tinkered with FreeBSD for a > while trying to > set it up as a gateway, and finally got tired of it and just > bought the router, > which works fine out of the box, with virtually no setup. $100 for a router that may or may not ever have security updates or $20 for a NIC in a machine that you've already got and are ready to configure and use as a gateway. Jack, while I personally haven't put together a configuration like you're talking about, I'm pretty sure that it's not that hard to do. After all, having a FreeBSD machine do dial on demand PPP as a network gateway to a dial-up ISP seems like it would be harder than what you're talking about, but it's actually a simple thing to do. Having a machine send network packets between real interfaces sounds a lot easier. While you're setting it up, I'd recommend against running any sort of firewall or filtering software. You can add those in once you've gotten the link established and running properly. And while I'm at it, not to harp on things here, but Anthony, you've previously admitted that you're new at FreeBSD. Your dissatisfaction at not being able to configure your system to fit your application may have something to do with your relative inexperience with the system itself. --- Andy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message