summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/tproxy.t.json.output
blob: 2690f22539867f3e82b5c72c80db16fb2e06dc7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# meta l4proto 17 tproxy ip to 192.0.2.1
[
    {
        "match": {
            "left": {
                "meta": {
                    "key": "l4proto"
                }
            },
            "op": "==",
            "right": 17
        }
    },
    {
        "tproxy": {
            "addr": "192.0.2.1"
        }
    }
]

# meta l4proto 6 tproxy ip to 192.0.2.1:50080
[
    {
        "match": {
            "left": {
                "meta": {
                    "key": "l4proto"
                }
            },
            "op": "==",
            "right": 6
        }
    },
    {
        "tproxy": {
            "addr": "192.0.2.1",
            "port": 50080
        }
    }
]

# ip protocol 6 tproxy ip to :50080
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "protocol",
                    "protocol": "ip"
                }
            },
            "op": "==",
            "right": 6
        }
    },
    {
        "tproxy": {
            "port": 50080
        }
    }
]