]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Add new directives in rules which are currently unparsable by the module
authorAndrey Voronkov <voronkovaa@gmail.com>
Tue, 23 Aug 2022 14:52:04 +0000 (17:52 +0300)
committerAndrey Voronkov <voronkovaa@gmail.com>
Tue, 23 Aug 2022 14:52:04 +0000 (17:52 +0300)
lib/puppet/provider/firewall/iptables.rb

index 9b9c3016282c59b26d465338ee61ea8f194b6952..644a658722451c7b020c4eeda3166ff0a8111cb9 100644 (file)
@@ -130,6 +130,8 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa
     nflog_prefix: '--nflog-prefix',
     nflog_range: '--nflog-range',
     nflog_threshold: '--nflog-threshold',
+    on_port: '--on-port',
+    on_ip: '--on-ip',
     outiface: '-o',
     pkttype: '-m pkttype --pkt-type',
     port: '-m multiport --ports',
@@ -173,6 +175,8 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa
     toports: '--to-ports',
     tosource: '--to-source',
     to: '--to',
+    transparent: '--transparent',
+    tproxy_mark: '--tproxy-mark',
     uid: '--uid-owner',
     u32: ['-m u32 --u32', '--u32'],
     physdev_in: '--physdev-in',
@@ -232,6 +236,7 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa
     :rsource,
     :rttl,
     :socket,
+    :transparent,
     :physdev_is_bridged,
     :physdev_is_in,
     :physdev_is_out,
@@ -357,7 +362,8 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa
     :month_days, :week_days, :date_start, :date_stop, :time_contiguous, :kernel_timezone,
     :src_cc, :dst_cc, :hashlimit_upto, :hashlimit_above, :hashlimit_name, :hashlimit_burst,
     :hashlimit_mode, :hashlimit_srcmask, :hashlimit_dstmask, :hashlimit_htable_size,
-    :hashlimit_htable_max, :hashlimit_htable_expire, :hashlimit_htable_gcinterval, :bytecode, :ipvs, :zone, :helper, :cgroup, :rpfilter, :condition, :name, :notrack
+    :hashlimit_htable_max, :hashlimit_htable_expire, :hashlimit_htable_gcinterval, :bytecode, :ipvs, :zone, :helper, :cgroup, :rpfilter, :condition, :name, :notrack,
+    :on_port, :on_ip, :tproxy_mark
   ]
 
   def insert