From owner-freebsd-stable@freebsd.org Tue Oct 13 09:39:00 2020 Return-Path: Delivered-To: freebsd-stable@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 8841443BDC0; Tue, 13 Oct 2020 09:39:00 +0000 (UTC) (envelope-from SRS0=EtXK=DU=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 4C9VqR5CGzz4Tsx; Tue, 13 Oct 2020 09:38:59 +0000 (UTC) (envelope-from SRS0=EtXK=DU=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id D118A28429; Tue, 13 Oct 2020 11:38:50 +0200 (CEST) Received: from illbsd.quip.test (ip-94-112-144-235.net.upcbroadband.cz [94.112.144.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id E411228417; Tue, 13 Oct 2020 11:38:49 +0200 (CEST) Subject: Re: pf and hnX interfaces To: Kristof Provost , "Eugene M. Zheganin" Cc: freebsd-net@freebsd.org, freebsd-stable References: <7166d87e-7547-6be8-42a7-b0957ca4f543@norma.perm.ru> <5FB9EFF9-0D95-4FC6-9469-2FC29D479379@FreeBSD.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <3a276ae4-59d2-5637-f6d2-2252f9fe4d4d@quip.cz> Date: Tue, 13 Oct 2020 11:38:49 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5FB9EFF9-0D95-4FC6-9469-2FC29D479379@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4C9VqR5CGzz4Tsx X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=EtXK=DU=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=EtXK=DU=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [0.34 / 15.00]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=EtXK=DU=quip.cz=000.fbsd@elsa.codelab.cz]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[quip.cz]; ARC_NA(0.00)[]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.07)[-1.070]; NEURAL_SPAM_LONG(0.24)[0.238]; NEURAL_HAM_MEDIUM(-0.03)[-0.032]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=EtXK=DU=quip.cz=000.fbsd@elsa.codelab.cz]; RECEIVED_SPAMHAUS_PBL(0.00)[94.112.144.235:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-net,freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2020 09:39:00 -0000 On 13/10/2020 11:19, Kristof Provost wrote: > On 13 Oct 2020, at 10:58, Eugene M. Zheganin wrote: >> Is there some issue with pf and hn interfaces that I'm unaware about? >> > There’s no interface specific code in pf, so it wouldn’t be specific to > hn interfaces. > >> Are these symptoms of a bug ? >> > Perhaps. It can also be a symptom of resource exhaustion. > Are there any signs of memory allocation failures, or incrementing error > counters (in netstat or in pfctl)? I have seen this kind of errors in VirtualBox with PF and emulated Intel interface (emX) Oct 1 22:42:19 bobik postfix/smtp[35330]: connect to aspmx.l.google.com[108.177.126.27]:25: Permission denied Oct 1 22:42:19 bobik postfix/smtp[36246]: connect to aspmx.l.google.com[108.177.126.27]:25: Permission denied Oct 1 22:42:19 bobik postfix/smtp[35330]: connect to alt2.aspmx.l.google.com[108.177.97.27]:25: Permission denied Oct 1 22:42:19 bobik postfix/smtp[36246]: connect to alt1.aspmx.l.google.com[172.253.118.27]:25: Permission denied Oct 1 22:42:19 bobik postfix/smtp[35330]: connect to alt1.aspmx.l.google.com[172.253.118.27]:25: Permission denied Oct 1 22:42:19 bobik postfix/smtp[36246]: connect to alt2.aspmx.l.google.com[108.177.97.27]:25: Permission denied I think it is related to states table exhaustion (reported in freebsd-pf@ mailing list about a week ago). My firewall rules are open for all outgoing traffic. So I think your problem is related to some resource exhaustion too. Kind regards Miroslav Lachman