From 00c6f60f2e5b5f43b0fdb8cf522c7179768cb15d Mon Sep 17 00:00:00 2001 From: Markus Gothe Date: Thu, 26 Jan 2023 04:24:49 +0000 Subject: [PATCH] twamp: Don't try to resolve IP-adresses in firewall. --- twamp/files/etc/firewall.twamp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twamp/files/etc/firewall.twamp b/twamp/files/etc/firewall.twamp index db5532d2f..0d93c5c0b 100644 --- a/twamp/files/etc/firewall.twamp +++ b/twamp/files/etc/firewall.twamp @@ -29,8 +29,8 @@ function configure_firewall() function delete_rule() { - while iptables -w 1 -L zone_${1}_input --line-numbers 2>/dev/null | grep "TWAMP reflector port"; do - rule_num="$(iptables -w 1 -L zone_${1}_input --line-numbers | grep "TWAMP reflector port" | head -1|awk '{print $1}')" + while iptables -w 1 -nL zone_${1}_input --line-numbers 2>/dev/null | grep "TWAMP reflector port"; do + rule_num="$(iptables -w 1 -nL zone_${1}_input --line-numbers | grep "TWAMP reflector port" | head -1|awk '{print $1}')" if [ -n "${rule_num}" ]; then iptables -w 1 -D zone_${1}_input ${rule_num}; fi