add test for long ipset names
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 28 May 2014 08:45:27 +0000 (10:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 28 May 2014 08:45:27 +0000 (10:45 +0200)
test/test-ipset2/100.fw [new file with mode: 0644]
test/test-ipset2/tests [new file with mode: 0644]

diff --git a/test/test-ipset2/100.fw b/test/test-ipset2/100.fw
new file mode 100644 (file)
index 0000000..375b445
--- /dev/null
@@ -0,0 +1,12 @@
+[options]
+
+enable: 1
+
+[ipset a-longer-name-which-translates-into-fnv-digest]
+1.2.3.4
+1.2.3.5
+
+
+[rules]
+
+IN ACCEPT -p tcp -dport 80 -dest +a-longer-name-which-translates-into-fnv-digest
\ No newline at end of file
diff --git a/test/test-ipset2/tests b/test/test-ipset2/tests
new file mode 100644 (file)
index 0000000..8bc3ef5
--- /dev/null
@@ -0,0 +1,3 @@
+{ from => 'outside', to => 'vm100', dest => '1.2.3.4', dport => 80, action => 'ACCEPT' }
+
+{ from => 'outside', to => 'vm100', dest => '1.2.3.4', dport => 22, action => 'DROP' }