summaryrefslogtreecommitdiffstats
path: root/tests/py/bridge/reject.t.json.output
blob: 4f83f80374b9a5d2e42097509697cbf2ea35f60e (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# reject with icmp type host-unreachable
[
    {
        "reject": {
            "expr": "host-unreachable",
            "type": "icmp"
        }
    }
]

# reject with icmp type net-unreachable
[
    {
        "reject": {
            "expr": "net-unreachable",
            "type": "icmp"
        }
    }
]

# reject with icmp type prot-unreachable
[
    {
        "reject": {
            "expr": "prot-unreachable",
            "type": "icmp"
        }
    }
]

# reject with icmp type net-prohibited
[
    {
        "reject": {
            "expr": "net-prohibited",
            "type": "icmp"
        }
    }
]

# reject with icmp type host-prohibited
[
    {
        "reject": {
            "expr": "host-prohibited",
            "type": "icmp"
        }
    }
]

# reject with icmp type admin-prohibited
[
    {
        "reject": {
            "expr": "admin-prohibited",
            "type": "icmp"
        }
    }
]

# reject with icmpv6 type no-route
[
    {
        "reject": {
            "expr": "no-route",
            "type": "icmpv6"
        }
    }
]

# reject with icmpv6 type admin-prohibited
[
    {
        "reject": {
            "expr": "admin-prohibited",
            "type": "icmpv6"
        }
    }
]

# reject with icmpv6 type addr-unreachable
[
    {
        "reject": {
            "expr": "addr-unreachable",
            "type": "icmpv6"
        }
    }
]

# reject with icmpv6 type port-unreachable
[
    {
         "reject": {
            "expr": "port-unreachable",
            "type": "icmpv6"
        }
    }
]

# mark 12345 ip protocol tcp reject with tcp reset
[
    {
        "match": {
            "left": {
                "meta": {
                    "key": "mark"
                }
            },
            "op": "==",
            "right": 12345
        }
    },
    {
        "match": {
            "left": {
                "payload": {
                    "field": "protocol",
                    "protocol": "ip"
                }
            },
            "op": "==",
            "right": 6
        }
    },
    {
        "reject": {
            "type": "tcp reset"
        }
    }
]

# reject with icmpx type port-unreachable
[
    {
        "reject": null
    }
]

# ether type ip reject
[
    {
        "reject": {
            "expr": "port-unreachable",
            "type": "icmp"
        }
    }
]

# ether type ip6 reject
[
    {
        "reject": {
            "expr": "port-unreachable",
            "type": "icmpv6"
        }
    }
]