From 3b924e8cd652bae564bd97f144e5ea8501bb39a9 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Mon, 6 Jan 2025 15:22:14 +0100 Subject: [PATCH] Revert to busybox nc for metricsproxy nmap-ncat is causing issues in metricsproxy with globalnet: Ncat: Version 7.92 ( https://nmap.org/ncat ) Ncat: Listening on :::8081 Ncat: Listening on 0.0.0.0:8081 Ncat: Connection from 10.129.0.19. Ncat: Connection from 10.129.0.19:45064. Ncat: assertion failed: count <= INT_MAX QUITTING. It's not clear how to fix that, so this installs busybox and reverts to busybox nc instead. To avoid having too many changes in nettest, nmap-ncat is preserved for other uses. Signed-off-by: Stephen Kitt --- package/Dockerfile.nettest | 2 +- scripts/nettest/metricsproxy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/Dockerfile.nettest b/package/Dockerfile.nettest index b19f31ec..947597fd 100644 --- a/package/Dockerfile.nettest +++ b/package/Dockerfile.nettest @@ -9,7 +9,7 @@ COPY scripts/shared/dnf_install / RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/nettest \ glibc bash glibc-minimal-langpack coreutils-single libcurl-minimal \ - bind-utils curl-minimal iperf3 iproute iputils netperf nmap-ncat tcpdump + bind-utils busybox curl-minimal iperf3 iproute iputils netperf nmap-ncat tcpdump FROM scratch ARG TARGETPLATFORM diff --git a/scripts/nettest/metricsproxy b/scripts/nettest/metricsproxy index 215c01b0..bb211a7f 100755 --- a/scripts/nettest/metricsproxy +++ b/scripts/nettest/metricsproxy @@ -1,4 +1,4 @@ #!/bin/sh # Arguments: source-port target-IP target-port -exec /usr/bin/ncat -v -lk -p "$1" -c "/usr/bin/ncat $2 $3" +exec /usr/sbin/busybox nc -v -lk -p "$1" -e /usr/sbin/busybox nc "$2" "$3"