From aecedc0b61faa042689fa6c0f1507cdeaadcc1c6 Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste Date: Thu, 23 Aug 2012 09:13:04 +0200 Subject: [PATCH] Added a test case for /older/ alternative negation syntax --- spec/fixtures/iptables/conversion_hash.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index 28cfdbb..32b6e35 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -105,6 +105,14 @@ ARGS_TO_HASH = { :destination => '! 2.2.2.2/32', }, }, + 'source_destination_negate_destination_alternative' => { + :line => '-A INPUT -s 1.1.1.1 -d ! 2.2.2.2 -m comment --comment "000 negated destination address alternative"', + :table => 'filter', + :params => { + :source => '1.1.1.1/32', + :destination => '! 2.2.2.2/32', + }, + }, 'dport_range_1' => { :line => '-A INPUT -m multiport --dports 1:1024 -m comment --comment "000 allow foo"', :table => 'filter', -- 2.45.2