From 83c032ae4639a88f9d189ed871bec59a84d9b44a Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Fri, 10 Nov 2023 08:56:06 -0800 Subject: [PATCH] update the iptables test image to get a newer iptables binary PiperOrigin-RevId: 581274930 --- images/iptables/Dockerfile | 2 +- test/iptables/iptables_util.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/images/iptables/Dockerfile b/images/iptables/Dockerfile index efd91cb80..8fce5a0b2 100644 --- a/images/iptables/Dockerfile +++ b/images/iptables/Dockerfile @@ -1,2 +1,2 @@ -FROM ubuntu +FROM ubuntu:mantic RUN apt update && apt install -y iptables diff --git a/test/iptables/iptables_util.go b/test/iptables/iptables_util.go index 4590e169d..8b4eb2d42 100644 --- a/test/iptables/iptables_util.go +++ b/test/iptables/iptables_util.go @@ -39,9 +39,9 @@ func natTable(ipv6 bool, args ...string) error { func tableCmd(ipv6 bool, table string, args []string) error { args = append([]string{"-t", table}, args...) - binary := "iptables" + binary := "iptables-legacy" if ipv6 { - binary = "ip6tables" + binary = "ip6tables-legacy" } cmd := exec.Command(binary, args...) if out, err := cmd.CombinedOutput(); err != nil {