summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-07-01 16:52:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-07-01 16:52:41 +0200
commit0b3f6c9538da47d546a0bc12c8bf5d8dd8fc2fa7 (patch)
treef0604c07112ca56e32b4a3253f2559860617daae /qa
parentc4413a601ba46e336e624b035a1b69f7aa1a9318 (diff)
downloadconntrack-tools-0b3f6c9538da47d546a0bc12c8bf5d8dd8fc2fa7.tar.gz
conntrack-tools-0b3f6c9538da47d546a0bc12c8bf5d8dd8fc2fa7.zip
conntrack: fix `conntrack --[src|dst|any]-nat IP:PORT' if port mismatches
This patch fixes the filtering if the IP matches an entry but the PORT does not matches. Without this patch, the entry is shown when it should be not. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'qa')
-rw-r--r--qa/testsuite/03nat4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/testsuite/03nat b/qa/testsuite/03nat
index 69fbff7..f94e8ff 100644
--- a/qa/testsuite/03nat
+++ b/qa/testsuite/03nat
@@ -32,5 +32,9 @@
-L --dst-nat 3.3.3.3:80 ; OK
# show
-L --any-nat 3.3.3.3:80 ; OK
+# show
+-L --dst-nat 3.3.3.3:81 ; OK
+# show
+-L --dst-nat 1.1.1.1:80 ; OK
# delete
-D -s 1.1.1.1 ; OK