]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Adding u32
authorMohammed El-Hakim <mohammed.elhakim@sociomantic.com>
Thu, 9 Jan 2020 11:01:12 +0000 (12:01 +0100)
committerCiaran McCrisken <ciaran.mccrisken@puppet.com>
Mon, 11 May 2020 12:13:12 +0000 (13:13 +0100)
lib/puppet/provider/firewall/iptables.rb
spec/fixtures/iptables/conversion_hash.rb

index 8999d897c6caeb3b9d19e2a6160878cb97d6db0c..7dace7120fec93e5ae9d086ed9f7c5bca400d16a 100644 (file)
@@ -166,6 +166,7 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa
     tosource: '--to-source',
     to: '--to',
     uid: '--uid-owner',
+    u32: ['-m u32 --u32', '--u32'],
     physdev_in: '--physdev-in',
     physdev_out: '--physdev-out',
     physdev_is_bridged: '--physdev-is-bridged',
index 937d13eeb41def90cc39ccda44f4325140e0685a..a3cfb87a23a1e9b1930f36917807a17a233b9a74 100644 (file)
@@ -421,6 +421,14 @@ ARGS_TO_HASH = {
       src_type: ['! LOCAL --limit-iface-out', 'LOCAL'],
     },
   },
+  'u32' => {
+    line: '-A cali-fw-cali08818b3e1e0 -m u32 --u32 "0x0>>0x16&0x3c@0xc>>0x8=0x1000"',
+    table: 'filter',
+    params: {
+      chain: 'cali-fw-cali08818b3e1e0',
+      name:  '9000 fff92a2f7e1c5e95f852fdd7e4bd103785db4ae08bc24edd8ed530403bc16e45',
+    },
+  },
   'iniface_1_negated' => {
     line: '-A INPUT ! -i eth0 -j DROP -m comment --comment "060 iniface"',
     table: 'filter',