summaryrefslogtreecommitdiffstats
path: root/tests/monitor/testcases/simple.t
blob: e4dc073e14b65de986b6c2570e28edabcc9065c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# first the setup
I add table ip t
I add chain ip t c
O -

I add rule ip t c accept
O -

I add rule ip t c tcp dport { 22, 80, 443 } accept
O -

I insert rule ip t c counter accept
O add rule ip t c counter packets 0 bytes 0 accept

I replace rule ip t c handle 2 accept comment "foo bar"
O delete rule ip t c handle 2
O add rule ip t c accept comment "foo bar"

I add counter ip t cnt
O add counter ip t cnt { packets 0 bytes 0 }