File tree 1 file changed +6
-2
lines changed
lib/puppet/provider/firewallchain
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ class Puppet::Provider::Firewallchain::Firewallchain
9
9
# Command to list all chains and rules
10
10
$list_command = {
11
11
'IPv4' => 'iptables-save' ,
12
- 'IPv6' => 'ip6tables-save'
12
+ 'iptables' => 'iptables-save' ,
13
+ 'IPv6' => 'ip6tables-save' ,
14
+ 'ip6tables' => 'ip6tables-save'
13
15
}
14
16
# Regex used to divide output of$list_command between tables
15
17
$table_regex = %r{(\* (?:nat|mangle|filter|raw|rawpost|broute|security)[^*]+)}
@@ -20,7 +22,9 @@ class Puppet::Provider::Firewallchain::Firewallchain
20
22
# Base commands for the protocols, including table affixes
21
23
$base_command = {
22
24
'IPv4' => 'iptables -t' ,
23
- 'IPv6' => 'ip6tables -t'
25
+ 'iptables' => 'iptables -t' ,
26
+ 'IPv6' => 'ip6tables -t' ,
27
+ 'ip6tables' => 'ip6tables -t' ,
24
28
}
25
29
# Command to create a chain
26
30
$chain_create_command = '-N'
You can’t perform that action at this time.
0 commit comments