From nobody Thu Mar 21 09:59:44 2024 X-Original-To: freebsd-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 4V0gtP05Shz5Fhn5 for ; Thu, 21 Mar 2024 09:59:57 +0000 (UTC) (envelope-from eugene@zhegan.in) Received: from elf.hq.norma.perm.ru (mail.norman-retail.ru [128.127.146.8]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.norma.perm.ru", Issuer "R3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V0gtM47Xgz42Xd for ; Thu, 21 Mar 2024 09:59:55 +0000 (UTC) (envelope-from eugene@zhegan.in) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of eugene@zhegan.in designates 128.127.146.8 as permitted sender) smtp.mailfrom=eugene@zhegan.in Received: from [192.168.243.5] ([192.168.243.5]) by elf.hq.norma.perm.ru (8.16.1/8.16.1) with ESMTP id 42L9xiNH093577 for ; Thu, 21 Mar 2024 14:59:44 +0500 (+05) (envelope-from eugene@zhegan.in) Message-ID: Date: Thu, 21 Mar 2024 14:59:44 +0500 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 Thunderbird To: freebsd-pf@freebsd.org Content-Language: ru From: "Eugene M. Zheganin" Subject: PF NAT and tunnel interfaces Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.76 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.47)[-0.471]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:212494, ipnet:128.127.146.0/24, country:RU]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-pf@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[zhegan.in]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pf@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4V0gtM47Xgz42Xd Hello, for some significant time, from about 12.x early releases, I'm hhavingg huge issues with PF NAT on tunnel interfaces and I don't understant why. So I'm gonna start with very basic question: I have a rule that looks like this: nat on tun1 proto { tcp, udp, icmp, gre } from to any -> tun1