From nobody Wed Jul 20 09:59:17 2022 X-Original-To: pf@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LnrlF5FbMz4WbYp for ; Wed, 20 Jul 2022 09:59:21 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.flex-it.com.ua (mail.flex-it.com.ua [193.239.74.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LnrlD6p7Wz3FnW for ; Wed, 20 Jul 2022 09:59:20 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from [46.211.87.228] (helo=[192.168.1.179]) by mail.flex-it.com.ua with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oE6UA-000NfD-4K for pf@freebsd.org; Wed, 20 Jul 2022 12:59:18 +0300 Message-ID: Date: Wed, 20 Jul 2022 12:59:17 +0300 List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: updating "self" in RELENG_13 Content-Language: uk-UA To: pf@freebsd.org References: <7126c3de-2eab-733a-863d-0a38c409919e@sentex.net> <5e97f42c-6099-7556-f440-39d549fcbfeb@shurik.kiev.ua> <20220720095516.ojesxrxt2lfietez@tilda.center> From: Oleksandr Kryvulia In-Reply-To: <20220720095516.ojesxrxt2lfietez@tilda.center> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4LnrlD6p7Wz3FnW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shuriku@shurik.kiev.ua designates 193.239.74.7 as permitted sender) smtp.mailfrom=shuriku@shurik.kiev.ua X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[pf@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:35297, ipnet:193.239.72.0/22, country:UA]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[shurik.kiev.ua]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 20.07.22 12:55, Goran Mekić пише: > On Wed, Jul 20, 2022 at 10:08:47AM +0300, Oleksandr Kryvulia wrote: >> Hi, using interface groups instead makes sense for you? > Hello, > > I couldn't find the syntax for groups in PF. What is the proper way to > rewrite, for example, the following using group (maybe name it egress to > resemble OpenBSD?): > > ext_if = "re0" > nat on $ext_if inet from 192.168.0.0/24 to any -> ($ext_if) ifconfig re0 group ext_if then in pf.conf: nat on ext_if inet from 192.168.0.0/24 to any -> (ext_if)