From owner-freebsd-questions@freebsd.org Fri Nov 25 11:46:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 687B4C5460D for ; Fri, 25 Nov 2016 11:46:17 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3507DC65 for ; Fri, 25 Nov 2016 11:46:17 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [10.240.0.153] (vega.codepro.be [IPv6:2a01:4f8:162:1127::3]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id D594416004; Fri, 25 Nov 2016 12:46:14 +0100 (CET) From: "Kristof Provost" To: "Christoph P.U. Kukulies" Cc: "freebsd-questions@freebsd.org" Subject: Re: setting up a FreeBSD access point (hostap, natd) Date: Fri, 25 Nov 2016 12:46:14 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Mailer: MailMate (2.0BETAr6067) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 11:46:17 -0000 On 25 Nov 2016, at 12:34, Christoph P.U. Kukulies wrote: > Now when I start /sbin/natd -n re0 > natd is generally used in combination with ipfw. pf has its own NAT code. I’d avoid trying to mix the two. If you want to get pf to do nat you’ll want something like this in pf.conf: nat on re0 inet from 192.168.0.0/24 to any -> (re0) The way to set up ipfw with natd is documented in the handbook. Regards, Kristof From owner-freebsd-questions@freebsd.org Fri Nov 25 11:54:56 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95C04C54A17 for ; Fri, 25 Nov 2016 11:54:56 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from kukulies.org (mail.kukulies.org [78.47.239.221]) by mx1.freebsd.org (Postfix) with ESMTP id 5F9641C7 for ; Fri, 25 Nov 2016 11:54:56 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from localhost (localhost [127.0.0.1]) by kukulies.org (Postfix) with ESMTP id DBBA94DA409 for ; Fri, 25 Nov 2016 12:54:54 +0100 (CET) Received: from kukulies.org ([127.0.0.1]) by localhost (kukulies.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yHw9jcEz8j8X for ; Fri, 25 Nov 2016 12:54:54 +0100 (CET) Received: from [172.27.4.215] (unknown [87.79.34.228]) by kukulies.org (Postfix) with ESMTPSA id 8895E4DA408 for ; Fri, 25 Nov 2016 12:54:54 +0100 (CET) Subject: Re: setting up a FreeBSD access point (hostap, natd) To: freebsd-questions@freebsd.org References: From: "Christoph P.U. Kukulies" Message-ID: <3ffcc5a2-cd4e-bf19-0b41-c28eee4e7ab5@kukulies.org> Date: Fri, 25 Nov 2016 12:54:55 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 11:54:56 -0000 Am 25.11.2016 um 12:46 schrieb Kristof Provost: > nat on re0 inet from 192.168.0.0/24 to any -> (re0) Thanks. I'll try that. What does (re0) mean (in parens)? Just curious. Do I have to put anything more into pf.conf? -- Christoph