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.
This commit is contained in:
Peter J. Holzer 2021-11-16 14:42:36 +01:00
parent 5331526c2f
commit 0bdba244e4
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
use v5.22; use v5.22;
use warnings; use warnings;
my $iptables = `/sbin/iptables-save`; my $iptables = `/usr/sbin/iptables-save`;
my %tables = (); my %tables = ();
while ($iptables =~ /^\*(\w+)\n(.*?)\nCOMMIT$/smg) { while ($iptables =~ /^\*(\w+)\n(.*?)\nCOMMIT$/smg) {