summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/snat.t.json
blob: 58b0980ad57a4871fd599b69ced9bd48e5cf9841 (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
# tcp dport 80-90 snat to [2001:838:35f:1::]-[2001:838:35f:2::]:80-100
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "dport",
                    "protocol": "tcp"
                }
            },
	    "op": "==",
            "right": {
                "range": [ 80, 90 ]
            }
        }
    },
    {
        "snat": {
            "addr": {
                "range": [ "2001:838:35f:1::", "2001:838:35f:2::" ]
            },
            "port": {
                "range": [ 80, 100 ]
            }
        }
    }
]

# tcp dport 80-90 snat to [2001:838:35f:1::]-[2001:838:35f:2::]:100
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "dport",
                    "protocol": "tcp"
                }
            },
	    "op": "==",
            "right": {
                "range": [ 80, 90 ]
            }
        }
    },
    {
        "snat": {
            "addr": {
                "range": [ "2001:838:35f:1::", "2001:838:35f:2::" ]
            },
            "port": 100
        }
    }
]