diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-07-01 13:11:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-07-01 13:11:38 +0200 |
commit | dc727615d7fb0f06dbaeb926ed236e75d47f157a (patch) | |
tree | 3728cbc4699a82c57ed1e25bbf723f4629ce583e /qa | |
parent | ad33006a162fc6202de096a8f6d65a7c841da1ce (diff) | |
download | conntrack-tools-dc727615d7fb0f06dbaeb926ed236e75d47f157a.tar.gz conntrack-tools-dc727615d7fb0f06dbaeb926ed236e75d47f157a.zip |
conntrack: add testsuite for NAT filtering options
This patch adds the testsuite for the NAT filtering options.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'qa')
-rw-r--r-- | qa/testsuite/03nat | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/qa/testsuite/03nat b/qa/testsuite/03nat new file mode 100644 index 0000000..8043af6 --- /dev/null +++ b/qa/testsuite/03nat @@ -0,0 +1,36 @@ +# create dummy +-I -s 1.1.1.1 -d 2.2.2.2 --dst-nat 3.3.3.3 -p tcp --sport 10 --dport 20 --state LISTEN -u SEEN_REPLY -t 50 ; OK +# show +-L --dst-nat ; OK +# show +-L --dst-nat 3.3.3.3 ; OK +# show +-L --src-nat ; OK +# delete +-D -s 1.1.1.1 ; OK +# create dummy again +-I -s 1.1.1.1 -d 2.2.2.2 --src-nat 3.3.3.3 -p tcp --sport 10 --dport 20 --state LISTEN -u SEEN_REPLY -t 50 ; OK +# show +-L --src-nat ; OK +# show +-L --src-nat 3.3.3.3 ; OK +# show +-L --dst-nat ; OK +# show any-nat +-L --any-nat ; OK +# delete +-D -s 1.1.1.1 ; OK +# bad combination +-L --dst-nat --any-nat ; BAD +# bad combination +-L --src-nat --any-nat ; BAD +# bad combination +-L --src-nat --dst-nat --any-nat ; BAD +# create +-I -s 1.1.1.1 -d 2.2.2.2 --dst-nat 3.3.3.3:80 -p tcp --sport 10 --dport 20 --state LISTEN -u SEEN_REPLY -t 50 ; OK +# show +-L --dst-nat :80 ; OK +# show +-L --any-nat :80 ; OK +# delete +-D -s 1.1.1.1 ; OK |