3.8 Creating Locations

Security requirements for a device might differ from location to location. For example, you might have different personal firewall restrictions for a device located in an airport terminal than for a device located in an office inside your corporate firewall.

To ensure that a device’s security requirements are appropriate for the location that it is in, ZENworks supports both global policies and location-based polices. A global policy is applied regardless of the device’s location. A location-based policy is applied only when the device’s current location meets the criteria for a location associated with the policy. For example, if you create a location-based policy for your corporate office and assign it to a laptop, the policy is applied only when the laptop’s location is the corporate office.

If you want to use location-based policies, you must first define the locations that suit your organization. A location is a place, or type of place, for which you have specific security requirements. For example, you might have different security requirements when a device is used in the office, at home, or in an airport.

Locations are defined by network environments. Assume that you have an office in New York and an office in Tokyo. Both offices have the same security requirements. Therefore, you create an Office location and associate it with two network environments: New York Office Network and Tokyo Office Network. Each of these environments is explicitly defined by a set of gateway, DNS server, and wireless access point services. Whenever the ZENworks Agent determines that its current environment matches the New York Office Network or Tokyo Office Network, the agent sets its location to Office and applies the security policies associated with the Office location.

The following sections explain how to create locations:

3.8.1 Defining a Network Environment

Network environment definitions are the building blocks for locations. Network environments can be defined while creating a location. However, it is recommended that you define network environments first, and then add them while creating locations.

To create a network environment:

  1. In ZENworks Control Center, click Configuration > Locations.

  2. In the Network Environments panel, click New to launch the Create New Network Environment wizard.

  3. On the Define Details page, specify a name for the network environment, then click Next.

  4. On the Network Environment Details page, specify the following:

    Limit to Adapter Type: By default, the network services you define on this page are evaluated against a device’s wired, wireless, and dial-up network adapters. If you want to limit the evaluation to a specific adapter type, select Wired, Wireless, or Dial Up.

    Minimum Match: Specify the minimum number of defined network services that should match in order to select this network environment.

    Specify the minimum number of defined network services that should match, in order to select this network environment.

    For example, if you define one gateway address, three DNS servers, and one DHCP server, you have a total of five services. You can specify that at least three of those services must match in order to select this network environment.

    When specifying a minimum match number, ensure the following:

    • The number cannot be less than the number of services marked as Match Required.

    • The number should not exceed the total number of defined services. If it exceeds, the minimum match will never be reached, and the network environment will never be selected.

    Network Services: Enables you to define the network services that the ZENworks Agent evaluates to see if its current network environment matches this network environment. Select the tab for the network service that you want to define. Click Add, then specify the required information.

  5. Click Next to display the Summary page, then click Finish.

3.8.2 Creating Locations

When you create a location, you provide a location name and then associate the required network environments with the location.

  1. In ZENworks Control Center, click Configuration > Locations.

  2. In the Locations panel, click New to launch the Create New Location wizard.

  3. On the Define Details page, specify a name for the location, then click Next.

  4. On the Assign Network Environments page:

    1. Select Assign existing Network Environments to the Location.

    2. Click Add, select the network environments for which you want to define the location, then click OK to add them to the list.

    3. Click Next when you are finished adding network environments.

  5. On the summary page, click Finish to create the location and add it to the Locations list.

When multiple locations include the network environment identified by the ZENworks Agent, the order of the list determines which location is used. The location listed first is selected, by default. To reorder the list, use the Move Up and Move Down options.

You can also use the network-environment-create and location-create commands in the zman utility to create a network environment and the related location using the created network environment. For more information, see Registration Commands in the ZENworks Command Line Utilities Reference.

3.8.3 Location and Network Environment Selection on a Managed Device

If you have multiple locations and network environments defined in ZENworks Control Center, the ZENworks Agent on the managed device scans all the defined network environments to identify matched environments. From the identified environments, the ZENworks Agent selects the network environments that have the highest number of matched network services (such as Client IP Address and DNS Servers). The ZENworks Agent then scans the ordered list of locations, identifies the first location that contains any of the selected network environments, and selects the location and the first matched network environment contained within this location.

For example:

  • The locations defined in ZENworks Control Center are listed in the following order: L1 and L2.

  • The network environments within L1 are listed in the following order: NE1, NE2, and NE4.

  • The network environments within L2 are listed in the following order: NE2, NE3, and NE4.

  • The ZENworks Agent on the managed device detects that NE2, NE3 and NE4 all match on the managed device.

If NE2 and NE4 each have two network service matches each, and NE3 has just one network service match, the ZENworks Agent selects NE2 and NE4 because they have the most network service matches. Because NE2 is the first listed network environment in L1, L1 and NE2 are selected as the location and network environment.

NOTE:For a network environment to be considered matched on the managed device, it must meet all the restrictions set in the network environment. These include the Minimum Match attribute specified for the network environment, and also the Match Required attribute specified for the network services, within the network environment.