From nobody Wed Mar 09 19:55:52 2022 X-Original-To: freebsd-net@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 1859F1A09953 for ; Wed, 9 Mar 2022 19:55:59 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KDNH22P3Nz3JBW for ; Wed, 9 Mar 2022 19:55:58 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-wm1-x332.google.com with SMTP id r187-20020a1c2bc4000000b003810e6b192aso2151525wmr.1 for ; Wed, 09 Mar 2022 11:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:from :subject:to:content-transfer-encoding; bh=Zn44YtGZ2E7CB2B3BN0iNV0z6D8P4BCsprSBm7ipu9I=; b=cSuEweqcdC7XfLyyoyOVvHLAPSmjRasuLKQn8XDEramliA8wraobKB/jOU0MduQxH/ Kr5AAxYsmAuxxTI7Pz8M6Sw7KmIKxvLH89jd3IfhzwbwjU/DNfnFQ33sJDNWLY9h+6rY wvh65vzeT2BeStZzyTZa233RS7X0mMnrLORM1x97HJTJrP+Y/4tMfXMci/1hjjliA9tx NEgbK7hDRtPGNOx4Sf+xZ1//AyfX0VPzcDxbyo58IyR6da8iZottiG6HrpnYVFPqq437 uqxmmJ1owNZeHZ4NSOmmDSbE0re4p75etSpUdiHXVglYq1OKRYJmbou3fifkdsjbgu9p mGkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:from:subject:to:content-transfer-encoding; bh=Zn44YtGZ2E7CB2B3BN0iNV0z6D8P4BCsprSBm7ipu9I=; b=kbGtkjFln6zQSELrd0tIWHA28wzSe445iJZz47zEB07HShscwOiTf7b/wV8CjRpxBH aIRKSbS71/Lk4kXfnE1+ulH1UK88YPTzqiARp5P7+sq7wiQEuMcIN7TvRO1NH/3dKJNd llsEzdtSzOPZggYSYCpWAy4345x+bAZZg8tYj1ieslXsEF5vc7SEsW5/QZZYMzjYyIPl jj/BTjlgsu1NE4WZP99B0pE68d88LDhhOfHosrGYHHZVIRHsvcFdCH9CZLeqtNyOYJ0b dicVSnV4C37uz9BztweYMpvnGVw3sKMPtVeosRL0wN7YfbOikUF0hHkXI8QmKv8kI6ok I8eA== X-Gm-Message-State: AOAM531lpnqZJZG5tS3uEtWJSgahFVuC/OuxLqikTIBEvk2fSoeA6RV+ vKxyH2UCQH1fvMmzXFCsR/o6LfO+924= X-Google-Smtp-Source: ABdhPJw9/w7X6gIpCnHVoXngTr5EYmekKcF82B4NIam1CPJzdzKpVApfuA3PZbr6XWtcLDm9pOX9bw== X-Received: by 2002:a7b:c2f7:0:b0:389:860c:6d3d with SMTP id e23-20020a7bc2f7000000b00389860c6d3dmr817832wmk.116.1646855757094; Wed, 09 Mar 2022 11:55:57 -0800 (PST) Received: from [192.168.1.18] (85-147-130-226.cable.dynamic.v4.ziggo.nl. [85.147.130.226]) by smtp.gmail.com with ESMTPSA id d8-20020a056000114800b001f045f3435asm3267413wrx.108.2022.03.09.11.55.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Mar 2022 11:55:56 -0800 (PST) Message-ID: <051d51b6-2a07-fbc6-7b4d-13947e7fcdbb@gmail.com> Date: Wed, 9 Mar 2022 20:55:52 +0100 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Content-Language: en-US From: Johan Hendriks Subject: epair and vnet jail loose connection. To: freebsd-net@FreeBSD.org Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KDNH22P3Nz3JBW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=cSuEweqc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johhendriks@gmail.com designates 2a00:1450:4864:20::332 as permitted sender) smtp.mailfrom=johhendriks@gmail.com X-Spamd-Result: default: False [-2.24 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; NEURAL_SPAM_MEDIUM(0.46)[0.461]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::332:from]; MIME_HTML_ONLY(0.20)[]; MLMMJ_DEST(0.00)[freebsd-net]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N
The problem:
I have a FreeBSD 14 machine and a FreeBSD 13-stable machine, both running the same jails just to test the workings.

The jails that are running are a salt master, a haproxy  jail, 2 webservers, 2 varnish servers, 2 php jails one for php8.0 and one with 8.1. All the jails are connected to bridge0 and all the jails use vnet.

I believe this worked on an older 14-HEAD machine, but i did not do a lot with it back then, and when i started testing again and after updating the OS i noticed that one of the varnish jails lost it's network connection after running for a few hours. I thought it was just something on HEAD so never really looked at it. But later on when i start using the jails again and testing a test wordpress site i noticed that with a simple load test my haproxy jail within one minute looses it's network connection. I see nothing in the logs, on the host and on the jail.
From the jail i can not ping the other jails or the IP adres of the bridge. I can however ping the jails own IP adres. From the host i can also not ping the haproxy jail IP adres. If i start a tcpdump on the epaira interface from the haproxy jail i do see the packets arrive but not in the jail.

I used ZFS to send all the jails to a 13-STABLE machine and copied over the jail.conf file as well as the pf.conf file and i saw the same behavior.

Then i tried to use 13.0-RELEASE-p7 and on that machine i do not see this happening. There i can stress test the machine for 10 minutes without a problem but on 14-HEAD and 13-STABLE within a minute the jail's network connection fails and only a restart of the jail brings it back online to exhibit the same behavior if i start a simple load test which it should handle nicely.

One of the jail hosts is running under VMWARE and the other is running under Ubuntu with KVM. The 13.0-RELEASE-p7 jail host is running under Ubuntu with KVM

Thank you for your time.
regards
Johan