From nobody Mon Feb 9 14:14:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1652285441223386.9119238388116; Wed, 11 May 2022 09:10:41 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-634-UU9XIZLXPJaHjP1_2QPo7Q-1; Wed, 11 May 2022 12:10:36 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D3A331E7DCC8; Wed, 11 May 2022 16:10:30 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF12154AC93; Wed, 11 May 2022 16:10:30 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 867D51932204; Wed, 11 May 2022 16:10:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9C899194975B for ; Wed, 11 May 2022 15:41:59 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 767F540C1244; Wed, 11 May 2022 15:41:59 +0000 (UTC) Received: from egarver.remote.csb (unknown [10.22.10.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F74F40C1421; Wed, 11 May 2022 15:41:59 +0000 (UTC) X-MC-Unique: UU9XIZLXPJaHjP1_2QPo7Q-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Eric Garver To: libvir-list@redhat.com Subject: [PATCH 2/4] network: firewalld: add zone for routed networks Date: Wed, 11 May 2022 11:41:53 -0400 Message-Id: <20220511154156.4036678-3-eric@garver.life> In-Reply-To: <20220511154156.4036678-1-eric@garver.life> References: <20220511154156.4036678-1-eric@garver.life> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Mailman-Approved-At: Wed, 11 May 2022 16:10:28 +0000 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laine@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1652285442622100002 Content-Type: text/plain; charset="utf-8"; x-default="true" This zone will be used for the routed network by default. Signed-off-by: Eric Garver --- src/network/libvirt-routed.zone | 12 ++++++++++++ src/network/meson.build | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 src/network/libvirt-routed.zone diff --git a/src/network/libvirt-routed.zone b/src/network/libvirt-routed.z= one new file mode 100644 index 000000000000..9cc6cacc2f8a --- /dev/null +++ b/src/network/libvirt-routed.zone @@ -0,0 +1,12 @@ + + + libvirt-routed + + + This zone is intended to be used only by routed libvirt virtual networ= ks - + libvirt will add the bridge devices for all new virtual networks to th= is + zone by default. + + + + diff --git a/src/network/meson.build b/src/network/meson.build index 3dd342639a46..cd52e2a54c28 100644 --- a/src/network/meson.build +++ b/src/network/meson.build @@ -100,6 +100,11 @@ if conf.has('WITH_NETWORK') install_dir: prefix / 'lib' / 'firewalld' / 'zones', rename: [ 'libvirt.xml' ], ) + install_data( + 'libvirt-routed.zone', + install_dir: prefix / 'lib' / 'firewalld' / 'zones', + rename: [ 'libvirt-routed.xml' ], + ) install_data( 'libvirt-to-host.policy', install_dir: prefix / 'lib' / 'firewalld' / 'policies', --=20 2.33.0