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:
parent
5331526c2f
commit
0bdba244e4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue