1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Description: update path to `iptables'
Origin: vendor
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1898971
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-10-08
--- a/lib/IPTables/Parse.pm
+++ b/lib/IPTables/Parse.pm
@@ -28,8 +28,8 @@
my $class = shift;
my %args = @_;
- my $ipt_bin = '/sbin/iptables';
- my $ipt6_bin = '/sbin/ip6tables';
+ my $ipt_bin = '/usr/sbin/iptables';
+ my $ipt6_bin = '/usr/sbin/ip6tables';
my $fwc_bin = '/usr/bin/firewall-cmd';
my $self = {
@@ -1072,7 +1072,7 @@
iptables/ip6tables commands, or from parsing a file that contains an
iptables/ip6tables policy listing. Note that the 'firewalld' infrastructure on
Fedora21 is also supported through execution of the 'firewall-cmd' binary.
-By default, the path to iptables is assumed to be '/sbin/iptables', but if the
+By default, the path to iptables is assumed to be '/usr/sbin/iptables', but if the
firewall is 'firewalld', then the '/usr/bin/firewall-cmd' is used.
With this module, you can get the current policy applied to a
--- a/t/basic_tests.pl
+++ b/t/basic_tests.pl
@@ -8,8 +8,8 @@
require IPTables::Parse;
#==================== config =====================
-my $iptables_bin = '/sbin/iptables';
-my $ip6tables_bin = '/sbin/ip6tables';
+my $iptables_bin = '/usr/usr/sbin/iptables';
+my $ip6tables_bin = '/usr/sbin/ip6tables';
my $fw_cmd_bin = '/bin/firewall-cmd';
my $dummy_path = '/bin/invalidpath';
|