To further control how the appliance allocates IPv4 addresses to DHCP client requests, you can apply DHCP filters to determine the following:
You can apply IPv4 logic filters at the Grid DHCP or Member DHCP. You can choose to keep the inherited properties or override them when you edit the IPv4 networks, IPv4 network containers, IPv4 network templates, IPv4 shared networks, IPv4 DHCP ranges, IPv4 DHCP range templates, IPv4 fixed addresses, IPv4 reservations, IPv4 fixed address templates, IPv4 reservation templates, or IPv4 host addresses.
You can apply any DHCP filter to the Class Filter List of a DHCP range or range template. The appliance uses the matching rules of these filters to select the address range from which it assigns a lease. You can define permissions for these filters to instruct the appliance whether to grant or deny a lease to the matching client. When you add a filter with a grant permission, the client must match the filter criteria to receive a lease. When you define a filter with a deny permission, clients that do not match the filter criteria still receive leases. Only the client that matches the filter criteria is denied a lease.
Filters in the Class Filter List correspond to the class statement generated in the dhcpd configuration file, which is a classification of the client packet. All DHCP clients that match the option filter and relay agent filter criteria become members of the same class and are eligible to receive DHCP options for that class, regardless of the networks in which the clients reside. However, a client can only become a member of the MAC or NAC filter class when it is granted a lease from the DHCP range based on the filter criteria. Whether a client receives specific options and option values depends on the hierarchy of the options and how you apply the filters. For information about how the appliance returns DHCP options, see Adding Filters to the Logic Filter List.
The filters you add to the Logic Filter List correspond to the match rules that are written to the dhcpd configuration file. The appliance uses these filters to identify DHCP options and values to return to the matching clients. You can apply option, MAC, and NAC filters to the Logic Filter List. Note that a DHCP client is eligible to receive DHCP options defined in a filter if it matches the filter criteria. Whether the client receives specific options and their corresponding values depends on the hierarchy of the options and the list of options requested by the client through DHCP option 55. You can configure the appliance to ignore the option list requested by a matching client and return all the options that the client is eligible to receive. For information about how to ignore the option list requested by a client, see Configuring General IPv4 DHCP Properties.
Note
The appliance allows you to add an empty IPv4 logic filter at the end of the logic filter list, which means that you can add an IPv4 logic filter without defining DHCP options in it. In addition, you can change the order of the filters in the logic filter list.
The appliance decides which options and values to return to a client based on the following:
For more information about how the appliance grants and denies leases to requesting clients and determines which DHCP options to return to the matching clients, see Configuration Example: Using the Class and Logic Filter Lists.
To apply IPv4 filters:
If you have only one configured DHCP filter, the appliance displays the filter in the table. Otherwise, in the DHCP Filter Selector dialog box, click the filter you want to add. Use SHIFT+click and CTRL+click to select multiple filters.
For each filter you add, click the Action column and select one of the following from the drop-down list:
For MAC address filters: Select this to assign an IP address from the address range to a requesting host whose MAC address matches the MAC address in the filter.
For relay agent filters: Select this to assign an IP address from the address range when one or both of the relay agent identifiers of the requesting host match the filter criteria.
For option filters: Select this to assign an IP address from the address range to a requesting host whose DHCP options match the DHCP options and match rules defined in the filter.
For NAC filters: Select this to assign an IP address from the address range to a requesting host based on the authentication results from a RADIUS authentication server group.
For DHCP fingerprint filters: Select this to grant a lease from the address range to a requesting host based whose DHCP fingerprint matches the DHCP fingerprint in the filter.
For MAC address filters: Select this to deny an address request from a host whose MAC address matches a MAC address in the filter.
For relay agent filters: Select this to deny an address request when one or both relay agent identifiers match the filter criteria in the filter.
For option filters: Select this to deny an address request from a host whose DHCP options match the options and match rules in the filter.
For NAC filters: Select this to deny an address request from a host based on the authentication results from a RADIUS authentication server group.
For DHCP fingerprint filters: Select this to deny a lease request when the DHCP fingerprint of the requesting host matches the DHCP fingerprint in the filter.
The appliance uses filters in both the Class Filter and Logic Filter lists to determine the DHCP options and values it returns to the matching clients.
Note
You can only add a filter that does not contain any match rules as the last filter in the Logic Filter List.
5. Save the configuration and click Restart if it appears at the top of the screen.
The following example shows you how to define DHCP filters and apply them to the class and logic filter lists. It also shows you the DHCP configuration file that is generated based on the configuration.
In this example, you first define a MAC filter, two option filters (one without match rules), and a NAC filter, and then apply the MAC filter to the Class Filter List and the other filters to the Logic Filter List of the address range 10.34.34.6 - 10.34.34.55.
Options to Merge with Object Options: Click the Add icon. Grid Manager adds a new row to the table with the default DHCP option space and option name displayed. Complete the following:
d. Save the configuration.
2. Add a MAC address filter item as follows. For more information, see Adding MAC Address Filter Items.
AB:DE:CC:DD:EE:01
as the MAC address.3. Configure and save an option filter with match rules as follows. For more information, see Defining Option Filters.
Option1
.c. Click Next and complete the following to add match rules:
vendor-class-identifier.
substring equals
, and then enter the following:0
to match the value starting at the first character of the option data.4
.MSFT
as the matching value.Click Preview and the appliance displays the expression: (vendor-class-identifier,0,4="MSFT")
.
d. Click Next and complete the following to define the DHCP options to return to the matching client:
Options to Merge with Object Options: Click the Add icon. Grid Manager adds a new row to the table with the default DHCP option space and option name displayed. Complete the following:
time-server(4)
.10.34.34.2
as the value for the time-server option that is sent to the client in the OFFER/ACK message.4. Configure and save another option filter without match rules as follows:
Options to Merge with Object Options: Click the Add icon. Grid Manager adds a new row to the table with the default DHCP option space and option name displayed. Complete the following:
domain-name(6).
www.infoblox.com.
d. Save the configuration.
5. Configure and save a NAC filter as follows. For more information, see Defining NAC Filters.
NAC1
.Click Preview and the appliance displays the expression: (Sophos.ComplianceState="Compliant"
).
d. Click Next and complete the following to define DHCP options:
seconds
from the drop-down list.Options to Merge with Object Options: Click the Add icon. Grid Manager adds a new row to the table with the default DHCP option space and option name displayed. Complete the following:
cookies-servers(8)
.e. Save the configuration.
6. Apply the filters to the address range as follows. For more information, see Applying Filters to DHCP Objects.
The appliance generates the following information in the DHCP configuration file based on the filter configuration in this example:
# MAC filter "MAC1"
class "MAC1" {
default-lease-time 1234;
min-lease-time 1234;
max-lease-time 1234;
option log-servers 10.34.34.3;
}
# NAC filter "NAC1"
{option sophos.compliance
state="compliant"
}
subnet 10.34.34.0 netmask 255.255.255.0 {
pool {
infoblox-range 10.34.34.6 10.34.34.55;
range 10.34.34.6 10.34.34.55;
option routers 10.34.34.1;
# INFOBLOXMACFILTERDEBUGINFO: allow members of "MAC1";
if (substring(option vendor-class-identifier,0,4)="MSFT") {
# Option filter "Option1"
option time-servers 10.34.34.2;
}
elsif (option Sophos.ComplianceState="Compliant") {
# NAC filter "NAC1"
default-lease-time 1000;
min-lease-time 1000;
max-lease-time 1000;
option cookie-servers 10.34.34.5;
}
else {
# Option filter "Option2"
default-lease-time 2500;
min-lease-time 2500;
max-lease-time 2500;
option domain-name "www.infoblox.com"; }
}
Depending on client requests and the matching criteria, the following scenarios can happen in this example:
If the requesting client matches the MAC1 and Option1 filters, the appliance returns the following:
If the requesting client matches the MAC1 and NAC1 filters, the appliance returns the following:
If the client matches the MAC1 filter, but not the Option1 or NAC1 filters, the appliance returns the following:
If the requesting client does not match the MAC1 filter, no lease is granted.
This page has no comments.