|
@@ -19,12 +19,12 @@
|
|
|
# One packet can belong to zero or more classes.
|
|
|
"client-classes": [
|
|
|
|
|
|
-# The first class attempts to match the whole hardware address to specific
|
|
|
-# value. All incoming packets with that MAC address will get special
|
|
|
+# The first class attempts to match the whole hardware address to a specific
|
|
|
+# value. All incoming packets with that MAC address will get a special
|
|
|
# value of the option. If there are many hosts that require special
|
|
|
# treatment, it is much better to use host reservations. However, doing
|
|
|
# tricks with MAC addresses may prove useful in some cases, e.g.
|
|
|
-# by matching OUI to known value we can detect certain vendors.
|
|
|
+# by matching OUI to known values we can detect certain vendors.
|
|
|
{
|
|
|
"name": "special_snowflake",
|
|
|
"test": "pkt4.mac == 0x010203040506",
|
|
@@ -41,7 +41,7 @@
|
|
|
"test": "pkt4.msgtype == 1"
|
|
|
},
|
|
|
|
|
|
-# Clients are supposed to set transaction-id field to a random value.
|
|
|
+# Clients are supposed to set the transaction-id field to a random value.
|
|
|
# Clients that send it with 0 are most likely broken. Let's mark them
|
|
|
# as such.
|
|
|
{
|
|
@@ -61,23 +61,23 @@
|
|
|
|
|
|
# The following list defines subnets. For some subnets we defined
|
|
|
# a class that is allowed in that subnet. If not specified,
|
|
|
-# everyone is allowed. When it is specified, only packets belonging
|
|
|
-# to that class are allowed for a given subnet.
|
|
|
+# everyone is allowed. When a class is specified, only packets belonging
|
|
|
+# to that class are allowed for that subnet.
|
|
|
"subnet4": [
|
|
|
- {
|
|
|
+ {
|
|
|
# This one is for VoIP devices only.
|
|
|
- "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ],
|
|
|
- "subnet": "192.0.2.0/24",
|
|
|
- "client-class": "VoIP",
|
|
|
- "interface": "ethX"
|
|
|
- },
|
|
|
+ "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ],
|
|
|
+ "subnet": "192.0.2.0/24",
|
|
|
+ "client-class": "VoIP",
|
|
|
+ "interface": "ethX"
|
|
|
+ },
|
|
|
# This one doesn't have any client-class specified, so everyone
|
|
|
# is allowed in. The normal subnet selection rules still apply,
|
|
|
# though.
|
|
|
{
|
|
|
- "pools": [ { "pool": "192.0.3.1 - 192.0.3.200" } ],
|
|
|
- "subnet": "192.0.3.0/24",
|
|
|
- "interface": "ethX"
|
|
|
+ "pools": [ { "pool": "192.0.3.1 - 192.0.3.200" } ],
|
|
|
+ "subnet": "192.0.3.0/24",
|
|
|
+ "interface": "ethX"
|
|
|
}
|
|
|
]
|
|
|
},
|