blob: f6f640d43865b8be25334185c4de494774522d2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# ip protocol tcp tcp dport 22
ip test-ip input
[ payload load 1b @ network header + 9 => reg 1 ]
[ cmp eq reg 1 0x00000006 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
[ cmp eq reg 1 0x00001600 ]
# ip protocol tcp meta mark set 1 tcp dport 22
ip test-ip input
[ payload load 1b @ network header + 9 => reg 1 ]
[ cmp eq reg 1 0x00000006 ]
[ immediate reg 1 0x00000001 ]
[ meta set mark with reg 1 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
[ cmp eq reg 1 0x00001600 ]
|