From owner-freebsd-questions@FreeBSD.ORG Tue Oct 8 05:01:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8E43681F for ; Tue, 8 Oct 2013 05:01:15 +0000 (UTC) (envelope-from olivier2553@gmail.com) Received: from mail-qe0-x235.google.com (mail-qe0-x235.google.com [IPv6:2607:f8b0:400d:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 518FE22D6 for ; Tue, 8 Oct 2013 05:01:15 +0000 (UTC) Received: by mail-qe0-f53.google.com with SMTP id cy11so2144728qeb.12 for ; Mon, 07 Oct 2013 22:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=KcTvOR9dJb1inaIc2X//ZnDu9CBR/UuYLLQRuiX6GRM=; b=D4ZacK8lx9018BNvp1L5zyh9VNTfaWL3axTK6OFmXKqfTkVRvUsyVNCyL/NpWEX92T VJUBcpG18kXHPVh1cXl8/IRYPUCOT+i53h4qcuck9N7ecF9laAg3lEXf2nWeY3QKvdYO tYNBR+Uo/nvPG++gG4lzt5KUl6I+uxOPHFpd5eRxWn9fQeqOObJ6IEnir4nmWXUdhdQ6 OMl8DpnRB8nBvm7Peh4Tddc++K70EyO5weXHJWm98j/MTldqZVn7Qz9nT3w4opZNVeVW RyOLetVE+oE2G0BJeLPZs/oO++Mbo7b23JjWoQLfL51q/C0JVrqD97jiSgD9s1yfo8IG A/yw== MIME-Version: 1.0 X-Received: by 10.224.3.5 with SMTP id 5mr1219877qal.93.1381208474327; Mon, 07 Oct 2013 22:01:14 -0700 (PDT) Sender: olivier2553@gmail.com Received: by 10.49.109.199 with HTTP; Mon, 7 Oct 2013 22:01:14 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Oct 2013 12:01:14 +0700 X-Google-Sender-Auth: 1Tl42Oz9X54t0Dz2tL5Ym396ECE Message-ID: Subject: Re: NAT: Handbook vs mailing list From: Olivier Nicole To: Chris Stankevitz Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2013 05:01:15 -0000 Chris, On Tue, Oct 8, 2013 at 11:21 AM, Chris Stankevitz wrote: > http://www.freebsd.org/doc/handbook/network-natd.html > > http://lists.freebsd.org/pipermail/freebsd-questions/2011-April/229017.html > > Hello, > > Handbook section 31.9.3 suggests I should, among other things, add the > line ipdivert_load="YES" to /boot/loader.conf when setting up NAT. > > The mailing list message linked above suggests that the handbook > information is the "old way" and that the correct way is to set > ipfw_enable and natd_enable in rc.conf. "Then /etc/rc.d/ipfw will > load ipfw.ko, and if natd_enable is set, will invoke /etc/rc.d/natd, > which loads ipdivert.ko at the right time." >From what you copied/explained, natd_enable will load ipdivert.ko and the handbook suggests that you load ipdivert.ko, so either way the module will be loaded. I'd go with the ipfw_enable and natd_enable as it may also do other needed things than just loading a kernel module. best regards, Olivier > My inclination is to follow the handbook, but I thought I should first > check to ensure the handbook is up-to-date. > > Thank you, > > Chris > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"