Jeffrey Archer - SONS of Fortune
Jeffrey Archer - SONS of Fortune
Jeffrey Archer - SONS of Fortune
Guide
TRUSTSEC HOW-TO GUIDES
Table of Contents
Introduction ..................................................................................................................................................5
Using This Guide..........................................................................................................................................5
Baseline ISE Configuration for TrustSec ........................................................................................................................7
Active Directory Integration (optional) ..........................................................................................................7
Defining the Security Groups (SG) and Security Group Tag (SGT).............................................................8
Creating the Device SGT .......................................................................................................................8
Defining Security Groups and SGTs .....................................................................................................9
Auto-generating SGTs ....................................................................................................................9
Reserving a range or manually defining Security Group Tags........................................................9
Importing SGs and SGTs from a spreadsheet ..............................................................................10
Defining TrustSec Devices within ISE ........................................................................................................10
Cisco IOS, NX-OS, IOS-XE devices ....................................................................................................10
Cisco ASA5500 Adaptive Security Appliances ....................................................................................12
Network Device Authorization ....................................................................................................................13
Chapter Summary ......................................................................................................................................13
TrustSec Policy Acquisition ...........................................................................................................................................14
Catalyst Devices ........................................................................................................................................14
Policy Acquisition .................................................................................................................................14
Verifying Policy Acquisition ..................................................................................................................15
NXOS Devices ...........................................................................................................................................16
Policy Acquisition .................................................................................................................................16
Verifying Policy Acquisition ..................................................................................................................16
ASA ............................................................................................................................................................17
Policy Acquisition .................................................................................................................................17
Verifying Policy Acquisition ..................................................................................................................18
Chapter Summary ......................................................................................................................................19
Classification ...................................................................................................................................................................21
Dynamic SGT Assignment .........................................................................................................................21
Static SGT Assignment ..............................................................................................................................21
Mapping a SGT to a port-profile (Nexus 1000v) ..................................................................................21
Mapping a SGT to an IP Address ..............................................................................................................22
Using ISE .............................................................................................................................................22
Validate IP to SGT Mapping .........................................................................................................23
Using CLI .............................................................................................................................................23
Introduction
Cisco TrustSec uses tags to represent logical group privilege. This tag, called a Security Group
Tag (SGT), is used in access policies. The SGT is understood and is used to enforce traffic by
Cisco switches, routers and firewalls. Cisco TrustSec is defined in three phases, classification,
propagation and enforcement. When users and devices connect to a network, the network assigns
a specific security group. This process is called classification. Classification can be based on the
results of the authentication or by associating the SGT with an IP, VLAN, or port-profile (more on
this later in this guide). Once user traffic is classified, then the SGT is propagated from where
classification took place, to where enforcement action is invoked. This process is called
propagation.
Cisco TrustSec has two methods of SGT propagation: inline tagging and SXP. With inline tagging,
the SGT is embedded into the ethernet frame. The ability to embed the SGT within an ethernet
frame does require specific hardware support. Therefore network devices that don’t have the
hardware support use a protocol called SXP (SGT Exchange Protocol). SXP is used to share the
SGT to IP address mapping. This allows the SGT propagation to continue to the next device in the
path.
Finally an enforcement device controls traffic based on the tag information. A TrustSec
enforcement point can be a Cisco firewall, router or switch. The enforcement device takes the
source SGT and looks it up against the destination SGT to determine if the traffic should be
allowed or denied. If the enforcement device is a Cisco firewall it also allows stateful firewall
processing and IPS deep packet inspection using the same source SGT in a single firewall rule.
This guide should be used as general guidance to configure the TrustSec solution in a network.
Below a sample topology diagram (Figure 2) is used to illustrate a typical enterprise network. This
guide will walk through the general configuration steps to illustrate how to enable TrustSec to
Cisco Systems © 2015 Page 5
TRUSTSEC HOW-TO GUIDES
classify endpoints and servers with a Security Group Tag, propagate Security Group Tag
information across network, and enforce traffic based on the SGT information. Additionally general
troubleshooting and best practice tips are provided where relevant.
The sample configuration used in this guide will enable access for employees, connected at
campus and branch locations, to access production servers but not the development servers in the
data center.
Note: Not all platforms that support TrustSec are represented here. However, the platforms shown are representative of the configuration
commands for TrustSec. Please refer to the following link for a complete listing of platform support:
http://www.cisco.com/c/en/us/solutions/enterprise-networks/trustsec/trustsec_matrix.html
Note: This guide does not provide deployment guidance or step-by-step configuration instructions for specific use cases. These topics are covered
separately. Please refer to http://www.cisco.com/c/en/us/solutions/enterprise-networks/trustsec/index.html
Note: For additional information on Active Directory with Cisco ISE refer to: Active Directory Integration with Cisco ISE 1.3 - Cisco
Defining the Security Groups (SG) and Security Group Tag (SGT)
When following best practice guidelines, there are three types of tags. They are the device tag
(device SGT), the SGTs used to represent security groups used to define policies, and the
unknown tag.
A device tag is used to represent network devices that communicate with ISE for policy
information. There is additional significance associated with this tag that will be explained in the
Enforcement section.
The unknown tag, by default is a SGT=0. This value cannot be modified. Any traffic that is not
associated with a SGT is subject to the default catch policy or specific policies defined for SGT=0.
Troubleshooting: If there is an error when creating the SGT, you should look at the error message from ISE and try again. Typically an invalid
character was typed. See example below:
Auto-generating SGTs
Step 1 Navigate to Policy->Policy Elements->Results->TrustSec->Security Groups
Step 2 Click the ADD button.
Step 3 Create the security group “Employee_SGT” and Save.
Step 4 Repeat Step 1 to create the remaining SGTs
Note: Items that are bolded are the fields that need modification. The other fields are left at default values
Description
! Advanced TrustSec Settings
Device Authentication Settings
Use Device ID for TrustSec !
This is automatically populated from the Device
Name if Use Device ID for SGA identification is
Device Id 3k-access checked. This ID must match the “ cts device-
id “command that is later configured on the
switch.
TrustSec authentication password. This must
Password ISEisC00L match the password that is associated with the
“cts device-id” command
TrustSec Notifications and Updates
Specifies the expiry time for environment data.
Download environment ISE returns this information when the switch
1 Days
data every queries for environment data. The default is 1
day
Specifies the expiry time for the peer
Download peer authorization policy. ISE returns this
1 Days
authorization policy every information to the device in response to a peer
policy request. The default is 1 day
NOT used in this lab. Specifies the dot1x re-
authentication period. ISE configures this for
Reauthentication every 1 Days
the supplicant and returns this information to
the authenticator. The default is 1 day
Specifies the expiry time for SGACL lists. ISE
Download SGACL lists returns this information to the device in the
1 Days
every response to a request for SGACL lists. The
default is 1 day.
Specifies whether all the device’s peer devices
trust this device. The default is checked, which
means that the peer devices trust this device,
Other TrustSec devices to
trust the device
! and do not change the SGTs on packets
arriving from this device. If you uncheck the
check box, the peer devices repaint packets
from this device with the related peer SGT.
Send configuration ! Using CoA CLI (SSH)
changes to device
Note: The step above configures communication between the 3650 and ISE. The step must be repeated to configure the communication between
the Nexus1000v and ISE.
Step 1 In the section “Out Of Band (OOB) SGA PAC”, click Generate PAC.
Identity T-ASA
Encryption Key ISEisC00L
PAC Time to Live 1 Years
Step 2 In the pop-up dialog box, input a string as the Encryption Key
Note: ASA uses this encryption key to import the PAC securely
Step 1 Click on Generate PAC. In the pop-up window, click OK to accept the default Save File option to save
the resulting pac file to the default Downloads folder
Step 2 Click Save to save your changes.
Step 3 If clicking the submit button doesn’t refresh the screen, your web console session has timed out. Log out of
ISE and close ALL browser windows. Then log back into ISE and re-run the ASA steps. This is a known
issue, CSCul57034
Chapter Summary
We have completed the baseline ISE configuration to enable TrustSec. In the following sections,
we will come back to ISE user interface to configure specific settings for classification and
enforcement. But at this point, your network device is ready to communicate with ISE, download
list of SGT values and establish communication pipeline to download policy once a network device
is configured.
Catalyst Devices
Policy Acquisition
Step 1 Configure the credentials that will be used for Network Device Authorization
Step 2 Configure the switch to obtain policy from ISE. Enter configuration mode and enter the following
commands:
Troubleshooting Tip: Reference CSCty28655. Utilize the suggested workaround if upgrading to the recommend code version is not possible.
NXOS Devices
Policy Acquisition
Step 1 Enable TrustSec
Note: “cts device tracking” enables the 1KV to tracking using its IP database (IPDB). The IP database tracks the IP Addresses that are learned.
Note: “svs switch edition advanced” enables the advanced license which is necessary to enable CTS
radius-server host <ip address> key <secret> pac auth-port 1812 acct-port 1813
aaa group server radius cts-radius
server <name or IP of ISE Policy Services Node>
use management vrf
exit
aaa accounting default group cts-radius
aaa authorization cts default group cts-radius
Step 3 Configure the device credential (this MUST match the “device-id (case sensitive) configured within the
Advanced TrustSec settings for the N1Kv on ISE). This command will initiate the communication with
ISE.
PAC Opaque :
000200b00003000100040010a6ee87f55c7131943d615cc1d47025bf00060094000301005a705134937fede63969e66676
ba2cfd00000013524d8aa700093a80ebcf09b38cc61b08e2e24e1e9fb4a9cb3f28907accd3785a356c0f1f3df62df8d673
590614ce4adfb083d05eaa906eef3dac86e2f6de0d7e8c5a86a9845b934e6f814de0fbd0d7213d7c77e3c23b4efbf7b34d
0893f2588b6768d6f545b7a9b11ce11701336bb269650cfa132df6d39240c60b6a
Troubleshooting TIp: If these steps fail, the device-id or password is probably mis-typed. Below is a sample Live Log entry of the failure.
ASA
Policy Acquisition
Step 1 Navigate to Configuration->Firewall->Identity by TrustSec (left panel)
Step 2 At the bottom of the resulting page, choose “10.1.100.21” for the Server group
Step 3 Choose "Import PAC" as shown below, to import the PAC. Enter the password configured within the
"Advanced TrustSec Settings" on ISE
Step 2 Verify environment data, device SGT, and the SGTs along with their associated group names were
downloaded. Navigate to Monitoring->Properties->Identity by TrustSec->Environment Data. Click
"Refresh" button if needed.
Troubleshooting Tip: If the environment data download fails, check whether the correct password was entered. It must be the same as the
password configured under the TrustSec Advanced Settings configuration for the ASA. Ensure the ASA has been saved in the ISE network
device list.
Chapter Summary
Almost all devices supporting TrustSec requires a PAC file to communicate with ISE to download
key policy elements and additional information available in the environment data. Additional
information related to this chapter is available in following links:
Cisco TrustSec Catalyst Switch Configuration Guide:
http://www.cisco.com/en/US/docs/switches/lan/trustsec/configuration/guide/ident-conn_config.html
Cisco TrustSec for ISRG2:
http://www.cisco.com/en/US/docs/ios-xml/ios/sec_usr_cts/configuration/15-mt/sec-usr-cts-15-mt-
book.html
Nexus 7000:
http://www.cisco.com/en/US/docs/switches/datacenter/sw/6_x/nx-
os/security/configuration/guide/b_Cisco_Nexus_7000_NX-
OS_Security_Configuration_Guide__Release_6.x_chapter_01101.html
Nexus 5000:
http://www.cisco.com/en/US/docs/switches/datacenter/nexus5500/sw/security/602_N1_2/b_5500_
Security_Config_602N12_chapter_01000.html
Nexus 1000v:
http://www.cisco.com/en/US/docs/switches/datacenter/nexus1000/sw/4_2_1_s_v_2_1_1/security/c
onfiguration/guide/b_Cisco_Nexus_1000V_Security_Configuration_Guide_2_1_1_chapter_010001
.html
Classification
The process of assigning the SGT is called Classification. A SGT can be assigned dynamically as
the result of an ISE authorization or it can be assigned via static methods that map the SGT to
something, like a VLAN, subnet, IP Address, or port-profile. Dynamic classification is typically
used to assign SGT to users because they are mobile. They could be connected from any location
via wireless, wired, or vpn. On the other hand, servers tend not to move, so typically static
classification methods are used.
The sample configuration in this chapter assigns users the “Employee_SGT” through dynamic
SGT assignment. SGT assignment for the production and development servers is shown using
two static classification methods. These methods are mapping the SGT to IP addresses, and
mapping the SGT to a port-profile, which is the only method possible for the virtual servers
connected to a Nexus 1000v.
Additionally, a listing of the other static classification methods is included for switches other than
the Nexus 1000v.
For a list of the classification methods that are supported across Catalyst and Nexus platforms,
please refer to the following link:
http://www.cisco.com/c/dam/en/us/solutions/collateral/enterprise-networks/trustsec/cisco-trustsec-
platform-capability-matrix.pdf
vCenter. Once the appropriate port-profile is mapped to the VM, every time the VM is powered up,
the Cisco Nexus 1000V applies the appropriate port-profile, and associates the SGT to the
VM. This is how classification is done on the Nexus 1000v.
Step 1 Assign the SGT for production server to the port-profile for production servers
Best Practice: “no propagate-sgt” command is necessary because this is a host facing port.
Step 2 Assign the SGT for development server to the port –profile for development servers
port-profile production
type: Vethernet
description:
status: enabled
max-ports: 32
min-ports: 1
inherit:
config attributes:
switchport access vlan 101
switchport mode access
cts manual
policy static sgt 0x64
no shutdown
evaluated config attributes:
switchport access vlan 101
switchport mode access
cts manual
policy static sgt 0x64
no shutdown
assigned interfaces:
Vethernet3
Using ISE
Step 1 Navigate to Policy-> Policy Elements-> Results->Trustsec-> Security Group Mappings
Using CLI
For Catalyst Devices
IP to SGT Mapping
The Catalyst 6500 and 6800 series switches have support for additional static mappings to a vrf or
layer 3 interface. Please refer to the following link for further details:
http://www.cisco.com/c/en/us/td/docs/switches/lan/trustsec/configuration/guide/trustsec/command_
sum.html#wp1548658
Switch(config)#vlan <number>
Switch(config)#cts role-based sgt <sgt-value>
Chapter Summary
You have now completed classifying the users and devices in this TrustSec deployment.
SGT Propagation
Now that classification is done, the next step is to propagate the SGTs through the environment to
the point of enforcement. There are two methods of propagation, SGT inline tagging and a peering
protocol called SGT eXchange Protocol (SXP). The three platforms in the sample topology all
support inline tagging. While inline tagging is the preferred propagation method, for illustrative
purposes, the connection between the 3650 and the ASA will use inline tagging and the connection
between the ASA and the Nexus 1000Kv uses SXP. Most deployments use a combination of
inline tagging and SXP.
3K(config-if)#cts manual
3K(config-if)#policy static sgt <decimal value of SGT> trusted
3K(config-if)#no sap
Note: The ASA does not support SAP currently. SAP is enabled by default on all switches. Therefore the "no sap" is required for inline tagging to
work between a switch and the ASA (code version 9.3.x)
ASA
Step 1 Navigate to Configuration->Device Setup->Interfaces
Step 2 Edit the entry for the outside interface
Step 3 On the resulting window, navigate to the Advanced tab
Step 4 Enable inline tagging
Step 5 Click OK and the Apply
Step 1 From the 3650, initiate a ping to the ASA outside interface
3650#ping 10.1.128.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.128.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/10/30 ms
Step 2 Look at the capture output on the ASA. You will see the icmp packets are tagged with the value of 2 .
Nexus 1000v
Step 2 Enter the peer’s IP address and specify the ASA’s role
Step 3 Click OK
Step 4 On the resulting window, enable SXP and set the password for the SXP connection. This password must
match what is configured on the peer device
TRUSTSEC HOW-TO GUIDES
Note: The SXP connection from either switch can be verified with the “show cts sxp connection all” command
Note: On the Nexus 1000v, SXP function is supported on the management VRF only
Note: On Nexus platforms, the mode refers to the peer’s mode. In the example above, the “mode listener” command indicates that the peer device
is the SXP listener.
Note: The SXP connection from either switch can be verified with the “show cts sxp connection” command
cts manual
policy static sgt <hex value of SGT> [trusted]
cts manual
sap pmk <key> modelist [gcm-encrypt | gmac | no-encap | null]
policy static sgt <decimal value of SGT> [trusted]
Chapter Summary
We have now completed propagating SGTs in this TrustSec deployment.
Enforcement
Now that the SGTs are defined and communicated to all of the network devices, enforcement via
SGACLs or SGFW is possible. SGACLs are centrally defined on ISE and pushed/downloaded to
both Catalyst and Nexus switches. SGFW rules are defined locally on the ASA via ASDM.
Note: The list of rules below is provided to cut and paste to create a malware prevention SGACL
permit icmp
deny udp src dst eq domain
deny tcp src dst eq 3389
deny tcp src dst eq 1433
deny tcp src dst eq 1521
deny tcp src dst eq 445
deny tcp src dst eq 137
deny tcp src dst eq 138
deny tcp src dst eq 139
deny udp src dst eq snmp
deny tcp src dst eq telnet
deny tcp src dst eq www
deny tcp src dst eq 443
deny tcp src dst eq 22
deny tcp src dst eq pop3
deny tcp src dst eq 123
Note: Notice the Default, “catch all”, rule is Permit IP. Traffic that does not match the policies defined in the matrix as subject to the Default Egress
rule.
Catalyst Devices
Step 1 From the CLI, enable enforcement globally
Nexus 1000v
Enforcement on the N1Kv is done at the port-profile level
Step 1 Enable enforcement.
sgt:5
dgt:4 rbacl:Deny IP
deny ip
sgt:any
dgt:any rbacl:Permit IP
permit ip
Step 3 Click OK
Step 4 Since policies are applied from top down, move the rule just created above the existing “any, any” policy
Step 5 Click OK
Step 6 Add a rule to allow the employees to access the production server. Click OK
Step 7 Click Apply
Nexus Devices
Step 1 Configure role-based enforcement globally and enable role-based counters so we can verify policy
enforcement
sgt:4
dgt:5 rbacl:Deny IP
deny ip
sgt:5
dgt:4 rbacl:Deny IP
deny ip
sgt:any
dgt:any rbacl:Permit IP
permit ip
Conclusion
In this guide we have seen a tested best practice approach to enabling Cisco TrustSec. We have
reviewed the three foundational pillars of Cisco TrustSec technology: classification, propagation,
and enforcement. Classification is the ability to accept the tag for a particular network
authentication session. Propagation, or transport, is the ability to send that assigned tag to
upstream neighbors through either native tagging or SXP. Enforcement may be on switches using
SGACLs or on an SGFW.
Additionally, we have covered the basic configurations of all of these features across the many
supported platforms.