From owner-freebsd-questions@FreeBSD.ORG Wed Jul 20 20:28:20 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 72F1C16A41F for ; Wed, 20 Jul 2005 20:28:20 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2542E43D46 for ; Wed, 20 Jul 2005 20:28:18 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 10111 invoked from network); 20 Jul 2005 20:28:17 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Jul 2005 20:28:17 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id A9B9B2A; Wed, 20 Jul 2005 16:28:16 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Michael Dexter References: From: Lowell Gilbert Date: 20 Jul 2005 16:28:16 -0400 In-Reply-To: Message-ID: <44br4x1au7.fsf@be-well.ilk.org> Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: 5.x ipdivert.ko with pf and natd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 20:28:20 -0000 Michael Dexter writes: > Hello, > > I would like to use natd with packet filter under FreeBSD 5.4. > > The rc.conf man page states that I want: natd_enable="YES" and that > "if the kernel was not built with options IPDIVERT, the ipdivert.ko > kernel module will be loaded." > > Unfortunately, the module ipdivert.ko does not appear to exist in /boot/kernel/ > > ... but I do see it in 6.x filesystem. > > I tried building a kernel with: > > options IPDIVERT > > and that did not appear to produce the module (depends on ipfw though > I want to use pf?). > > I do however see the source in: /usr/src/sys/netinet/ip_divert.c > > 1. Am I overlooking the prebuilt module in 5.x? > 2. Can I simply build the module on its own without a full buildkernel? > 3. Given that buildkernel did not produce it, how can I produce it? No, I don't see it in the module makefile on my -STABLE machine. natd *does* depend on ipfw; if you want to use pf, you probably want to use its built-in NAT capabilities. If you *do* want natd, you can always compile divert directly into your kernel.