From owner-freebsd-questions@freebsd.org Sat Apr 3 08:21:08 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A07085C4712 for ; Sat, 3 Apr 2021 08:21:08 +0000 (UTC) (envelope-from 4250.82.1d4cf000124950e.9f7e91daf1ec60cb78ed5ba9098a4790@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FC8yC5bDKz3PRW for ; Sat, 3 Apr 2021 08:21:07 +0000 (UTC) (envelope-from 4250.82.1d4cf000124950e.9f7e91daf1ec60cb78ed5ba9098a4790@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1617438068; x=1620030068; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=NFaf6DR0kSGl+uj6ovgJSeQCxolUjLD4vseoQ144pH4=; b=ftNeeckst7BFpwOUx3YViDh7MOTuF1sACejFYvb5uk30Z3tf97vuPBWQELGhcSwgZRbIIeC3UqiHstwiF8HHOQpUDftROnPrlZmwzkiJ2jLAmTqi+Dl/S6AoWRg/FBtn84ndY37yJb/cw/KA1ArgL3nd+aEPRxchU524HaDk/ac= X-Thread-Info: NDI1MC4xMi4xZDRjZjAwMDEyNDk1MGUuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r2.us-west-2.aws.in.socketlabs.com (r2.us-west-2.aws.in.socketlabs.com [142.0.190.2]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 3 Apr 2021 04:21:02 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r2.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 3 Apr 2021 04:21:00 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.94 (FreeBSD)) (envelope-from ) id 1lSbWc-0003Df-7r; Sat, 03 Apr 2021 09:20:58 +0100 Date: Sat, 3 Apr 2021 09:20:58 +0100 From: Steve O'Hara-Smith To: Frank Leonhardt Cc: freebsd-questions@freebsd.org Subject: Re: pf or ipfw for NAT Message-Id: <20210403092058.97c46ba70579026e9bd929a1@sohara.org> In-Reply-To: <1ff607ca-79cc-3072-831c-54659920e9dc@fjl.co.uk> References: <50dcf18d-f9c3-71c2-abb0-eed8f1b5e192@fjl.co.uk> <20210402210356.637a3ed714957fb9c5fdfa3a@sohara.org> <1ff607ca-79cc-3072-831c-54659920e9dc@fjl.co.uk> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FC8yC5bDKz3PRW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=ftNeecks; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.82.1d4cf000124950e.9f7e91daf1ec60cb78ed5ba9098a4790@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d4cf000124950e.9f7e91daf1ec60cb78ed5ba9098a4790@email-od.com X-Spamd-Result: default: False [-2.70 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[142.0.176.198:from]; SPAMHAUS_ZRD(0.00)[142.0.176.198:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d4cf000124950e.9f7e91daf1ec60cb78ed5ba9098a4790@email-od.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d4cf000124950e.9f7e91daf1ec60cb78ed5ba9098a4790@email-od.com]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2021 08:21:08 -0000 On Fri, 2 Apr 2021 21:36:04 +0100 Frank Leonhardt wrote: > Thanks Steve. Any idea whether I need to enable the gateway when using > pf instead? > > e.g. sysctl net.inet.ip.forwarding=1 I'm pretty sure you do - TBH I've never tried not setting it on anything that routes. -- Steve O'Hara-Smith