*bridge;test-bridge;input
# The output is specific for bridge family
-reject with icmp type host-unreachable;ok;ether type ip reject with icmp type host-unreachable
-reject with icmp type net-unreachable;ok;ether type ip reject with icmp type net-unreachable
-reject with icmp type prot-unreachable;ok;ether type ip reject with icmp type prot-unreachable
-reject with icmp type port-unreachable;ok;ether type ip reject
-reject with icmp type net-prohibited;ok;ether type ip reject with icmp type net-prohibited
-reject with icmp type host-prohibited;ok;ether type ip reject with icmp type host-prohibited
-reject with icmp type admin-prohibited;ok;ether type ip reject with icmp type admin-prohibited
-
-reject with icmpv6 type no-route;ok;ether type ip6 reject with icmpv6 type no-route
-reject with icmpv6 type admin-prohibited;ok;ether type ip6 reject with icmpv6 type admin-prohibited
-reject with icmpv6 type addr-unreachable;ok;ether type ip6 reject with icmpv6 type addr-unreachable
-reject with icmpv6 type port-unreachable;ok;ether type ip6 reject
+reject with icmp type host-unreachable;ok
+reject with icmp type net-unreachable;ok
+reject with icmp type prot-unreachable;ok
+reject with icmp type port-unreachable;ok
+reject with icmp type net-prohibited;ok
+reject with icmp type host-prohibited;ok
+reject with icmp type admin-prohibited;ok
+
+reject with icmpv6 type no-route;ok
+reject with icmpv6 type admin-prohibited;ok
+reject with icmpv6 type addr-unreachable;ok
+reject with icmpv6 type port-unreachable;ok
mark 12345 ip protocol tcp reject with tcp reset;ok;meta mark 0x00003039 ip protocol 6 reject with tcp reset
reject;ok
-ether type ip reject;ok
-ether type ip6 reject;ok
+ether type ip reject;ok;reject with icmp type port-unreachable
+ether type ip6 reject;ok;reject with icmpv6 type port-unreachable
reject with icmpx type host-unreachable;ok
reject with icmpx type no-route;ok
# reject with icmp type host-unreachable
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
{
"reject": {
"expr": "host-unreachable",
# reject with icmp type net-unreachable
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
{
"reject": {
"expr": "net-unreachable",
# reject with icmp type prot-unreachable
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
{
"reject": {
"expr": "prot-unreachable",
}
]
-# reject with icmp type port-unreachable
-[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
- {
- "reject": null
- }
-]
-
# reject with icmp type net-prohibited
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
{
"reject": {
"expr": "net-prohibited",
# reject with icmp type host-prohibited
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
{
"reject": {
"expr": "host-prohibited",
# reject with icmp type admin-prohibited
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip"
- }
- },
{
"reject": {
"expr": "admin-prohibited",
# reject with icmpv6 type no-route
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip6"
- }
- },
{
"reject": {
"expr": "no-route",
# reject with icmpv6 type admin-prohibited
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip6"
- }
- },
{
"reject": {
"expr": "admin-prohibited",
# reject with icmpv6 type addr-unreachable
[
- {
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip6"
- }
- },
{
"reject": {
"expr": "addr-unreachable",
# reject with icmpv6 type port-unreachable
[
{
- "match": {
- "left": {
- "payload": {
- "field": "type",
- "protocol": "ether"
- }
- },
- "op": "==",
- "right": "ip6"
+ "reject": {
+ "expr": "port-unreachable",
+ "type": "icmpv6"
}
- },
- {
- "reject": null
}
]
{
"match": {
"left": {
- "meta": { "key": "mark" }
+ "meta": {
+ "key": "mark"
+ }
},
- "op": "==",
+ "op": "==",
"right": 12345
}
},
"protocol": "ip"
}
},
- "op": "==",
+ "op": "==",
"right": 6
}
},
}
]
+# ether type ip reject
+[
+ {
+ "reject": {
+ "expr": "port-unreachable",
+ "type": "icmp"
+ }
+ }
+]
+
+# ether type ip6 reject
+[
+ {
+ "reject": {
+ "expr": "port-unreachable",
+ "type": "icmpv6"
+ }
+ }
+]