|
70 | 70 | has_feature :rpfilter |
71 | 71 | end |
72 | 72 |
|
| 73 | + if ip6tables_version && Puppet::Util::Package.versioncmp(ip6tables_version, '1.6.1') >= 0 |
| 74 | + has_feature :nflog_size |
| 75 | + end |
| 76 | + |
73 | 77 | def initialize(*args) |
74 | 78 | ip6tables_version = Facter.value('ip6tables_version') |
75 | 79 | raise ArgumentError, 'The ip6tables provider is not supported on version 1.3 of iptables' if ip6tables_version&.match(%r{1\.3\.\d}) |
@@ -140,6 +144,7 @@ def self.iptables_save(*args) |
140 | 144 | nflog_group: '--nflog-group', |
141 | 145 | nflog_prefix: '--nflog-prefix', |
142 | 146 | nflog_range: '--nflog-range', |
| 147 | + nflog_size: '--nflog-size', |
143 | 148 | nflog_threshold: '--nflog-threshold', |
144 | 149 | outiface: '-o', |
145 | 150 | pkttype: '-m pkttype --pkt-type', |
@@ -313,7 +318,9 @@ def self.iptables_save(*args) |
313 | 318 | :ctorigsrcport, :ctorigdstport, :ctreplsrcport, :ctrepldstport, :ctstatus, :ctexpire, :ctdir, |
314 | 319 | :icmp, :hop_limit, :limit, :burst, :length, :recent, :rseconds, :reap, |
315 | 320 | :rhitcount, :rttl, :rname, :mask, :rsource, :rdest, :ipset, :string, :string_hex, :string_algo, |
316 | | - :string_from, :string_to, :jump, :nflog_group, :nflog_prefix, :nflog_range, :nflog_threshold, :clamp_mss_to_pmtu, :gateway, :todest, |
| 321 | + :string_from, :string_to, :jump, |
| 322 | + :nflog_group, :nflog_prefix, :nflog_range, :nflog_size, :nflog_threshold, |
| 323 | + :clamp_mss_to_pmtu, :gateway, :todest, |
317 | 324 | :tosource, :toports, :checksum_fill, :log_level, :log_prefix, :log_uid, :log_tcp_sequence, :log_tcp_options, :log_ip_options, :random_fully, |
318 | 325 | :reject, :set_mss, :set_dscp, :set_dscp_class, :mss, :queue_num, :queue_bypass, |
319 | 326 | :set_mark, :match_mark, :connlimit_above, :connlimit_mask, :connmark, :time_start, :time_stop, :month_days, :week_days, :date_start, :date_stop, :time_contiguous, :kernel_timezone, |
|
0 commit comments