From owner-freebsd-net@FreeBSD.ORG Wed Nov 2 21:38:13 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6014B16A41F for ; Wed, 2 Nov 2005 21:38:13 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0428A43D45 for ; Wed, 2 Nov 2005 21:38:12 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 472F55CF8; Wed, 2 Nov 2005 16:38:12 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08869-05; Wed, 2 Nov 2005 16:38:11 -0500 (EST) Received: from [199.103.21.238] (pan.codefab.com [199.103.21.238]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 837ED5C67; Wed, 2 Nov 2005 16:38:11 -0500 (EST) In-Reply-To: <502337639.20051102220924@paranoid-zine.com> References: <502337639.20051102220924@paranoid-zine.com> Mime-Version: 1.0 (Apple Message framework v746.2) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2C66C948-04D0-4576-A158-992AAE5BECB8@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Wed, 2 Nov 2005 16:38:09 -0500 To: Peter Gregorc X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-net@freebsd.org Subject: Re: nat exclusion? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 21:38:13 -0000 On Nov 2, 2005, at 4:09 PM, Peter Gregorc wrote: > My config is like this: > ADSL MODEM BSD WS1 WS2 WS3 > | | | | | | > ________________________ (switch or hub-doesn't matter) > > I've got a /30 class subnet from my ISP. What i want to do is: > -my BSD should start a PPPoE connection with my ISP > -one of the IPs from /30 should be used by BSD > -the 2nd of the IPs should be used by WS1 > -WS2 and WS3 have local IP's and should have full access to internet > (NAT via BSD). If you've got a /30 subnet, you've most probably got one usable routable public IP, and the other IP is going to be used by the router IP for your ISP. Secondly, if you're going to want to NAT inside workstations, you need to have two NIC's in your BSD machine, one connected to the ADSL modem, and one connected to your internal LAN, using natd or whatever to do NAT... -- -Chuck