diff options
author | Harsha Sharma <harshasharmaiitr@gmail.com> | 2018-08-14 01:07:55 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-31 18:40:13 +0200 |
commit | 5df2f2e203230eeecb8617992741652226fc3ca4 (patch) | |
tree | a608b62954aa11c36aa0ae84461a3023292957af /tests/py/ip/objects.t | |
parent | c7c94802679cd9ba09aa78f332f533ecae1b9e0c (diff) |
tests: py: add ct timeout tests
Add test for adding ct timeout objects and assigning it via rule.
Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/objects.t')
-rw-r--r-- | tests/py/ip/objects.t | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/py/ip/objects.t b/tests/py/ip/objects.t index 5e8c7631..fc2ee266 100644 --- a/tests/py/ip/objects.t +++ b/tests/py/ip/objects.t @@ -32,3 +32,12 @@ ct helper set tcp dport map {21 : "cthelp1", 2121 : "cthelp1" };ok ip saddr 192.168.1.3 limit name "lim1";ok ip saddr 192.168.1.3 limit name "lim3";fail limit name tcp dport map {443 : "lim1", 80 : "lim2", 22 : "lim1"};ok + +# ct timeout +%cttime1 type ct timeout { protocol tcp; policy = { established:122 } ;};ok +%cttime2 type ct timeout { protocol udp; policy = { syn_sent:122 } ;};fail +%cttime3 type ct timeout { protocol tcp; policy = { established:132, close:16, close_wait:16 } ; l3proto ip ;};ok +%cttime4 type ct timeout { protocol udp; policy = { replied:14, unreplied:19 } ;};ok +%cttime5 type ct timeout {protocol tcp; policy = { estalbished:100 } ;};fail + +ct timeout set "cttime1";ok |