From nobody Mon Feb 9 03:14:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1579098264; cv=none; d=zohomail.com; s=zohoarc; b=UcJkvt++akIqJWMTITjASRZtDjKS+0o9C9tAZ62sI9+nilKt/A4YUEX2ZldsNFAJbbk4uu4B9Qah9y8JtgAkRaZwo8e5fq51iGSKAVJ33oFbElafkh9ZBisPj6y0h4IteZqKXw7sFqBNJP8UPvKpWqF1W3e2U4Uh2hGxpev96/w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579098264; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9V15ftlaDEUewlarDqJr+RpxSaipQQocNQCxvj52UPU=; b=PhQX5liKbDTnE37McpWlr9EudIlXIsbbWda8KXybNjg7Juzz/iSXy/w7zsK6LOOuzMloolJRU/m1gmSzC9+rWDa9O+yLiuAvAJsOWnoluDaOaBwKK8JSK4RgCYyzh9uU+k3LrPkPulmiybu5MSlqrt8b/r/F/uzCjkKb67TqZDI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1579098264134947.5779066387744; Wed, 15 Jan 2020 06:24:24 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-245-_CcpEJd8OmmmBf_rp9AY6Q-1; Wed, 15 Jan 2020 09:24:20 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2504B1902EBF; Wed, 15 Jan 2020 14:24:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DF9FE89D11; Wed, 15 Jan 2020 14:24:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7062718089C8; Wed, 15 Jan 2020 14:24:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00FEOAw0007727 for ; Wed, 15 Jan 2020 09:24:10 -0500 Received: by smtp.corp.redhat.com (Postfix) id BC6525F700; Wed, 15 Jan 2020 14:24:10 +0000 (UTC) Received: from ridgehead.redhat.com (unknown [10.43.2.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09D445C557; Wed, 15 Jan 2020 14:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579098263; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=9V15ftlaDEUewlarDqJr+RpxSaipQQocNQCxvj52UPU=; b=ZNx2uZ4otHIPa4m2u5xNTx9zoBkZxnvqvJO7tRloMk1rnxu4rXCsLqxM8hRGE8eWerOWWD lM/+IdAduab2vQnBK+qWxxKSJ07Uka/GfWvcIzp1aAb329INZuuu9bX4s85Ul+C7FviZ5O G4fmV99BYvdVtLePxyBqzeTQpGdV1sM= From: Erik Skultety To: libvir-list@redhat.com Date: Wed, 15 Jan 2020 15:23:58 +0100 Message-Id: <6c9dec6b6f1e4434bedd386378b1ea0b035a34b6.1579098197.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Erik Skultety Subject: [libvirt] [tck PATCH 1/3] network: Fix the iptables FORWARD chain name being queried X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: _CcpEJd8OmmmBf_rp9AY6Q-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" libvirt's has been defining private chains within iptables for a while, only putting a target labels inside the master FORWARD chain which broke the networking test suite which wasn't adjusted accordingly. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- .../networks/networkxml2hostout/tck-testnet-1.dat | 3 ++- .../networks/networkxml2hostout/tck-testnet-2.dat | 3 ++- .../networks/networkxml2hostout/tck-testnet-3.dat | 12 +++++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/networks/networkxml2hostout/tck-testnet-1.dat b/script= s/networks/networkxml2hostout/tck-testnet-1.dat index 3e2ce12..eacd4c4 100644 --- a/scripts/networks/networkxml2hostout/tck-testnet-1.dat +++ b/scripts/networks/networkxml2hostout/tck-testnet-1.dat @@ -4,8 +4,9 @@ RETURN all -- 10.1.2.0/24 255.255.255.255 MASQUERADE tcp -- 10.1.2.0/24 !10.1.2.0/24 masq ports: = 1024-65535=20 MASQUERADE udp -- 10.1.2.0/24 !10.1.2.0/24 masq ports: = 1024-65535=20 MASQUERADE all -- 10.1.2.0/24 !10.1.2.0/24 =20 -#iptables -n -L FORWARD | grep ' 10\.1\.2\.' | sed -e 's/ctstate/state/' +#iptables -n -L LIBVIRT_FWI | grep ' 10\.1\.2\.' | sed -e 's/ctstate/state= /' ACCEPT all -- 0.0.0.0/0 10.1.2.0/24 state RELATED= ,ESTABLISHED=20 +#iptables -n -L LIBVIRT_FWO | grep ' 10\.1\.2\.' ACCEPT all -- 10.1.2.0/24 0.0.0.0/0 =20 #ip -o route show dev tck-testbr | gawk '{print $1" "$7}' 10.1.2.0/24 10.1.2.1 diff --git a/scripts/networks/networkxml2hostout/tck-testnet-2.dat b/script= s/networks/networkxml2hostout/tck-testnet-2.dat index 48b4b28..9c90348 100644 --- a/scripts/networks/networkxml2hostout/tck-testnet-2.dat +++ b/scripts/networks/networkxml2hostout/tck-testnet-2.dat @@ -1,5 +1,6 @@ -#iptables -L FORWARD -n | grep ' 10\.1\.2\.' +#iptables -L LIBVIRT_FWI -n | grep ' 10\.1\.2\.' ACCEPT all -- 0.0.0.0/0 10.1.2.0/24 =20 +#iptables -L LIBVIRT_FWO -n | grep ' 10\.1\.2\.' ACCEPT all -- 10.1.2.0/24 0.0.0.0/0 =20 #iptables -t nat -L -n | grep ' 10\.1\.2\.' #ip -o route show dev tck-testbr | gawk '{print $1" "$7}' diff --git a/scripts/networks/networkxml2hostout/tck-testnet-3.dat b/script= s/networks/networkxml2hostout/tck-testnet-3.dat index fca4f81..77664ba 100644 --- a/scripts/networks/networkxml2hostout/tck-testnet-3.dat +++ b/scripts/networks/networkxml2hostout/tck-testnet-3.dat @@ -4,14 +4,16 @@ RETURN all -- 10.1.2.0/24 255.255.255.255 MASQUERADE tcp -- 10.1.2.0/24 !10.1.2.0/24 masq ports: = 1024-65535=20 MASQUERADE udp -- 10.1.2.0/24 !10.1.2.0/24 masq ports: = 1024-65535=20 MASQUERADE all -- 10.1.2.0/24 !10.1.2.0/24 =20 -#iptables -n -L FORWARD | grep ' 10\.1\.2\.' | sed -e 's/ctstate/state/' +#iptables -n -L LIBVIRT_FWI | grep ' 10\.1\.2\.' | sed -e 's/ctstate/state= /' ACCEPT all -- 0.0.0.0/0 10.1.2.0/24 state RELATED= ,ESTABLISHED=20 -ACCEPT all -- 10.1.2.0/24 0.0.0.0/0 =20 -#ip6tables -n -L FORWARD | grep ' 2001:db8:ac10' +#iptables -n -L LIBVIRT_FWO | grep ' 10\.1\.2\.' +ACCEPT all -- 10.1.2.0/24 0.0.0.0/0 +#ip6tables -n -L LIBVIRT_FWI | grep ' 2001:db8:ac10' ACCEPT all ::/0 2001:db8:ac10:fd01::/64=20 -ACCEPT all 2001:db8:ac10:fd01::/64 ::/0 =20 ACCEPT all ::/0 2001:db8:ac10:fe01::/64=20 -ACCEPT all 2001:db8:ac10:fe01::/64 ::/0 =20 +#ip6tables -n -L LIBVIRT_FWO | grep ' 2001:db8:ac10' +ACCEPT all 2001:db8:ac10:fd01::/64 ::/0 +ACCEPT all 2001:db8:ac10:fe01::/64 ::/0 #ps aux | sed -n '/dnsmasq .*tck-testnet/ s|.*\(\/dnsmasq\/tck-testnet.con= f\).*|\1|p' | head -1 /dnsmasq/tck-testnet.conf #grep bind-dynamic `ps aux | sed -n '0,/dnsmasq .*tck-testnet/ s|.*--conf-= file=3D\(.*tck-testnet.conf\).*|\1|p'` --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list