From 9863a2616ac9935ed924a750c187f2cfa1308cfb Mon Sep 17 00:00:00 2001 From: frh <4987254+frh@users.noreply.github.com> Date: Thu, 21 May 2020 17:56:31 +0200 Subject: [PATCH] Add ip6tables NFLOG unit test --- spec/fixtures/ip6tables/conversion_hash.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/fixtures/ip6tables/conversion_hash.rb b/spec/fixtures/ip6tables/conversion_hash.rb index 748dc8d..294019c 100644 --- a/spec/fixtures/ip6tables/conversion_hash.rb +++ b/spec/fixtures/ip6tables/conversion_hash.rb @@ -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 -- 2.45.2