Add ip6tables NFLOG unit test
authorfrh <4987254+frh@users.noreply.github.com>
Thu, 21 May 2020 15:56:31 +0000 (17:56 +0200)
committerfrh <4987254+frh@users.noreply.github.com>
Thu, 21 May 2020 15:56:31 +0000 (17:56 +0200)
spec/fixtures/ip6tables/conversion_hash.rb

index 748dc8d9496fa3575e0405e58986d87a8e0a16ff..294019cf648aa32a596d2118c63d0d3c71ebf558 100644 (file)
@@ -114,4 +114,15 @@ HASH_TO_ARGS6 = {
     },
     args: ['-t', :filter, '-p', :tcp, '-m', 'hl', '--hl-eq', 255, '-m', 'comment', '--comment', '100 hop limit'],
   },
+  'nflog' => {
+    params: {
+      name: '100 nflog',
+      jump: 'NFLOG',
+      nflog_group: '1',
+      nflog_prefix: 'myprefix',
+      provider: 'ip6tables',
+      table: 'filter',
+    },
+    args: ['-t', :filter, '-p', :tcp, '-J', 'NFLOG', '--nflog-group', '1', '--nflog-prefix', 'myprefix' '-m', 'comment', '--comment', '100 nflog'],
+  },
 }.freeze