From owner-freebsd-questions@FreeBSD.ORG Mon May 12 01:48:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6040737B401 for ; Mon, 12 May 2003 01:48:40 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D49643FE3 for ; Mon, 12 May 2003 01:48:39 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.6p2/8.12.6) with ESMTP id h4C8knEJ089715; Mon, 12 May 2003 03:46:49 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)h4C8knbI089712; Mon, 12 May 2003 03:46:49 -0500 (CDT) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Mon, 12 May 2003 03:46:49 -0500 (CDT) From: Eduardo Viruena Silva To: Chris P In-Reply-To: <20030511202927.A827@rawfire.torche.com> Message-ID: <20030512033615.P88785@Gina.esfm.ipn.mx> References: <20030511202927.A827@rawfire.torche.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: NAT + 5.0-RELEASE #0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 08:48:40 -0000 On Sun, 11 May 2003, Chris P wrote: > > I'm having some issues getting NAT working. > > It all worked great on 4.8, but I had to tweak the kernel to get it to > work. Anyone else have issues with it working on a stock kernel with 5.0? include these lines to your kernel description: options IPDIVERT options IPFIREWALL compile your kernel and install it. > > My net is coming in on an0, and I'm wanting to share it to the house on > dc0. add these lines to your /etc/rc.conf: natd_enable="YES" natd_interface="an0" and give your dc0 interface an IP, v. gr: ifconfig_dc0="inet 192.168.1.254 netmask 255.255.255.0" enable your firewall firewall_enable="YES" and choose a type for your firewall. firewall_type="file_name" of course, (full path) file_name contains the rules for your firewall. > dhcp is up and running fine, and the connection to the net is > working fine also, just cant get em talking to each other! > > Any help is appreciated! > Thanks.. > > C. > Eduardo. -- 2B | ~ 2B == ? Hamlet