diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-01 10:44:49 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-01 10:44:58 +0200 |
commit | a9084baa5d0ff6ccd28715b79ad2630bc77be49b (patch) | |
tree | 5f53bda6e82184773150e29339a425578c4db644 /extensions/libxt_CT.t | |
parent | cbe036db892c298c33e77dec2c5129dbb4dccc2c (diff) | |
parent | 4b187eeed49dc507d38438affabe90d36847412d (diff) |
Merge branch 'tests'
This merges the iptables-test.py script and the corresponding
test files.
Diffstat (limited to 'extensions/libxt_CT.t')
-rw-r--r-- | extensions/libxt_CT.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extensions/libxt_CT.t b/extensions/libxt_CT.t new file mode 100644 index 00000000..3c28534e --- /dev/null +++ b/extensions/libxt_CT.t @@ -0,0 +1,20 @@ +:PREROUTING,OUTPUT +*raw +-j CT --notrack;=;OK +-j CT --ctevents new,related,destroy,reply,assured,protoinfo,helper,mark;=;OK +-j CT --expevents new;=;OK +# ERROR: cannot find: iptables -I PREROUTING -t raw -j CT --zone 0 +# -j CT --zone 0;=;OK +-j CT --zone 65535;=;OK +-j CT --zone 65536;;FAIL +-j CT --zone -1;;FAIL +# ERROR: should fail: iptables -A PREROUTING -t raw -j CT +# -j CT;;FAIL +@nfct timeout add test inet tcp ESTABLISHED 100 +# cannot load: iptables -A PREROUTING -t raw -j CT --timeout test +# -j CT --timeout test;=;OK +@nfct timeout del test +@nfct helper add rpc inet tcp +# cannot load: iptables -A PREROUTING -t raw -j CT --helper rpc +# -j CT --helper rpc;=;OK +@nfct helper del rpc |