From owner-freebsd-net@FreeBSD.ORG Wed Nov 2 21:09:31 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 F329516A41F for ; Wed, 2 Nov 2005 21:09:30 +0000 (GMT) (envelope-from peter@paranoid-zine.com) Received: from mta1.siol.net (mta1.siol.net [193.189.160.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1686843D45 for ; Wed, 2 Nov 2005 21:09:27 +0000 (GMT) (envelope-from peter@paranoid-zine.com) Received: from edge1.siol.net ([10.10.10.210]) by mta1.siol.net with ESMTP id <20051102211004.MRTZ7456.mta1.siol.net@edge1.siol.net> for ; Wed, 2 Nov 2005 22:10:04 +0100 Received: from dezur ([193.189.160.24]) by edge1.siol.net with ESMTP id <20051102210902.RFZK15081.edge1.siol.net@dezur> for ; Wed, 2 Nov 2005 22:09:02 +0100 Date: Wed, 2 Nov 2005 22:09:24 +0100 From: Peter Gregorc X-Mailer: The Bat! (v3.62.07) UNREG / CD5BF9353B3B7091 Organization: Paranoid Metal Webzine X-Priority: 3 (Normal) Message-ID: <502337639.20051102220924@paranoid-zine.com> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: nat exclusion? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Gregorc 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:09:31 -0000 Hi! I'm quite new to using BSD as a router, and I didn't find any solution for my problem. 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). The problem is, that if i enable NAT in ppp.conf, then my WS1 introduces itself to internet as BSD (x.x.x.241) instead of it's own IP (.242). .242 IS accessable from outside, traceroute goes OK via .241. If i disable NAT, i get .242 to be shown to internet, but offcourse the 2 WS's with local IP's loose connectivity. Is there any chance to disable NAT for one of the IP's the easy way? I know I can assign both public IPs to BSD and then use ipfw to route 1 to WS1 and other to WS2 and WS3...but that's the last resort. Please CC answer to me, I don't have the time to check the list on daily basis. Thanks! Peter