From 0bdba244e4623584f92b2e3c06fd3828dcea6676 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Tue, 16 Nov 2021 14:42:36 +0100 Subject: [PATCH] Change location of iptables-save This seems to have changed in Ubuntu 20.04. Not sure how stable that is. I may have to check various locations at install or run time. --- iptables-save-clean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables-save-clean b/iptables-save-clean index abc3b13..293d2f4 100755 --- a/iptables-save-clean +++ b/iptables-save-clean @@ -2,7 +2,7 @@ use v5.22; use warnings; -my $iptables = `/sbin/iptables-save`; +my $iptables = `/usr/sbin/iptables-save`; my %tables = (); while ($iptables =~ /^\*(\w+)\n(.*?)\nCOMMIT$/smg) {