Conditions within a rule are ANDed. All conditions in the rule must match in order for MSS to take the specified action. If the location policy contains multiple rules, MSS compares the user information to the rules one at a time, in the order the rules appear in the switch’s configuration file, beginning with the rule at the top of the list. MSS continues comparing until a user matches all conditions in a rule or until there are no more rules.

The order of rules in the location policy is important to ensure users are properly granted or denied access. To position rules within the location policy, use before rule-number and modify rule-number in the set location policy command, and the clear location policy rule-number command.

When applying security ACLs:

Use inacl inacl-name to filter traffic that enters the switch from users via an access port or wired authentication port, or from the network via a network port.

Use outacl outacl-name to filter traffic sent from the switch to users via an AP access port or wired authentication port, or from the network via a network port.

You can optionally add the suffixes .in and .out to inacl-name and outacl-name so that they match the names of security ACLs stored in the local database.

Examples: The following command denies network access to all users at *.theirfirm.com, causing them to fail authorization:

DWS-1008#set location policy deny if user eq *.theirfirm.com

The following command authorizes access to the guest_1 VLAN for all users who are not at *.wodefirm.com:

DWS-1008#set location policy permit vlan guest_1 if user neq *.wodefirm.com

The following command authorizes users at *.ny.ourfirm.com to access the bld4.tac VLAN instead, and applies the security ACL tac_24 to the traffic they receive:

DWS-1008#set location policy permit vlan bld4.tac outacl tac_24 if user eq *.ny.ourfirm.com

The following command authorizes access to users on VLANs with names matching bld4.* and applies security ACLs svcs_2 to the traffic they send and svcs_3 to the traffic they receive:

DWS-1008#set location policy permit inacl svcs_2 outacl svcs_3 if vlan eq bldg4.*

The following command authorizes users entering the network on ports 2 through 4 and port 6 to use the floor2 VLAN, overriding any settings from AAA:

DWS-1008#set location policy permit vlan floor2 if port 2-4,6

The following command places all users who are authorized for SSID tempvendor_a into VLAN kiosk_1:

DWS-1008# set location policy permit vlan kiosk_1 if ssid eq tempvendor_a success: change accepted.

D-Link DWS-1008 CLI Manual

199

Page 202
Image 202
D-Link dws-1008 manual DWS-1008#set location policy deny if user eq *.theirfirm.com