Cisco TrustSec (CTS) builds secure networks by establishing domains of trusted network devices. Each device in the domain is authenticated by its peers. Communication on the links between devices in the domain is secured with a combination of encryption, message integrity check, and data-path replay protection mechanisms.
The Security Group Tag (SGT) Exchange Protocol (SXP) is one of several protocols that supports CTS and is referred to in this document as CTS-SXP. CTS-SXP is a control protocol for propagating IP-to-SGT binding information across network devices that do not have the capability to tag packets. CTS-SXP passes IP to SGT bindings from authentication points to upstream devices in the network. This process allows security services on switches, routers, or firewalls to learn identity information from access devices.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Prerequisites for Cisco TrustSec SGT Exchange Protocol IPv4
The CTS-SXP network needs to be established before implementing SXP. The CTS-SXP network has the following prerequisites:
To use the Cisco TrustSec functionality on your existing router, ensure that you have purchased a Cisco TrustSec security license. If the router is being ordered and needs the Cisco TrustSec functionality, ensure that this license is pre-installed on your router before it is shipped to you.
CTS-SXP software runs on all network devices
Connectivity exists between all network devices
The Cisco Identity Services Engine 1.0 is required for authentication. The Secure Access Control Server (ACS) Express Appliance server can also be used for authentication, however not all ACS features are supported by CTS. ACS 5.1 operates with a CTS-SXP license
Configure the
retryopentimer command to a different value on different routers.
Restrictions for Cisco TrustSec SGT Exchange Protocol IPv4
The Cisco TrustSec Support for IOS feature is supported on the Cisco Integrated Services Router Generation 2 (ISR G2) only.
CTS-SXP is supported only on physical interfaces, not on logical interfaces.
CTS-SXP does not support IPv6.
If the default password is configured on a router, the connection on that router should configure the password to use the default password. If the default password is not configured, the connection on that router should configure to not use the password configuration. The configuration of the password option should be consistent across the deployment network.
Information About Cisco TrustSec SGT Exchange Protocol IPv4
CTS-SXP uses the device and user credentials acquired during authentication for classifying the packets by security groups (SGs) as they enter the network. This packet classification is maintained by tagging packets on ingress to the CTS-SXP network so that they can be properly identified for the purpose of applying security and other policy criteria along the data path. The Security Group Tag (SGT) allows the network to enforce the access control policy by enabling the endpoint device to act upon the SGT to filter traffic.
Using CTS-SXP for SGT Propagation Across Legacy Access Networks
Tagging packets with SGTs requires hardware support. There may be devices in the network that can participate in CTS authentication, but lack the hardware capability to tag packets with SGTs. However, if CTS-SXP is used, then these devices can pass IP-to-SGT mappings to a CTS peer device that has CTS-capable hardware.
CTS-SXP typically operates between ingress access layer devices at the CTS domain edge and distribution layer devices within the CTS domain. The access layer device performs CTS authentication of external source devices to determine the appropriate SGTs for ingress packets. The access layer device learns the IP addresses of the source devices using IP device tracking and (optionally) DHCP snooping, then uses CTS-SXP to pass the IP addresses of the source devices along with their SGTs to the distribution switches. Distribution switches with CTS-capable hardware can use this IP-to-SGT mapping information to tag packets appropriately and to enforce Security Group Access Control List (SGACL) policies as shown in the figure below. An SGACL associates an SGT with a policy. The policy is enforced when SGT-tagged traffic egresses the CTS domain.
Figure 1
How CTS-SXP Propagates SGT Information
You must manually configure a CTS-SXP connection between a peer without CTS hardware support and a peer with CTS hardware support. The following tasks are required when configuring the CTS-SXP connection:
If CTS-SXP data integrity and authentication are required, the same CTS-SXP password can be configured on both peer devices. The CTS-SXP password can be configured either explicitly for each peer connection or globally for the device. Although a CTS-SXP password is not required it is recommended.
Each peer on the CTS-SXP connection must be configured as either a CTS-SXP speaker or CTS-SXP listener. The speaker device distributes the IP-to-SGT mapping information to the listener device.
A source IP address can be specified to use for each peer relationship or a default source IP address can be configured for peer connections where a specific source IP address is not configured. If no source IP address is specified, then the device uses the interface IP address of the connection to the peer.
CTS-SXP allows multiple hops. That is, if the peer of a device lacking CTS hardware support also lacks CTS hardware support, the second peer can have a CTS-SXP connection to a third peer, continuing the propagation of the IP-to-SGT mapping information until a hardware-capable peer is reached. A device can be configured as a CTS-SXP listener for one CTS-SXP connection as a CTS-SXP speaker for another CTS-SXP connection.
A CTS device maintains connectivity with its CTS-SXP peers by using the TCP keepalive mechanism. To establish or restore a peer connection, the device repeatedly attempts the connection setup by using the configured retry period until the connection is successful or until the connection is removed from the configuration.
VRF-Aware CTS-SXP
The CTS-SXP implementation of Virtual Routing and Forwarding (VRF) binds a CTS-SXP connection with a specific VRF. It is assumed that the network topology is correctly configured for Layer 2 or Layer 3 VPNs, and that all VRFs are configured before enabling CTS-SXP.
CTS-SXP VRF support can be summarized as follows:
Only one CTS-SXP connection can be bound to one VRF.
Different VRFs may have overlapping CTS-SXP peer or source IP addresses.
IP-to-SGT mappings learned (added or deleted) in one VRF can be updated only in the same VRF domain. The CTS-SXP connection cannot update a mapping bound to a different VRF. If no SXP connection exits for a VRF, IP-SGT mappings for that VRF won't be updated by SXP.
CTS-SXP does not support the establishment of connections with source and destination IPv6 addresses. However, multiple address families per VRF are supported where one CTS-SXP connection in a VRF domain can forward both IPv4 and IPv6 IP-to-SGT mappings.
CTS-SXP has no limitation on the number of connections and number of IP-to-SGT mappings per VRF.
Identity-Based Firewall
CTS-SXP extends the deployment of additional platforms such as network devices, Identity firewalls, and the wireless controller to additional places on the network. CTS-SXP is used for Identity distribution through inline devices where the identity information is learned from a primary communication path that exists across networks as shown in the figure below.
The SG name is one of the attributes that is used by the Identity firewall to apply enforcement policy. With the SG-name-to-SGT mapping information learned through an authentication server and IP-to-SGT binding learned through CTS-SXP, when a packet arrives, source and destination IP addresses in the packet are used to derive source and destination tags. The Identity firewall applies a policy to the received IP packets based on the configured policy where the SG name or SGT is one of the attributes.
Figure 2
CTS-SXP Identity Distribution Path Across Networks
How to Configure the Cisco TrustSec SGT Exchange Protocol IPv4
Enables a CTS-SXP connection to any peer connection that is configured.
Note
Ensure that peer connections are configured. If peer connections are not configured, then CTS-SXP connections cannot be established with them.
Configuring a CTS-SXP Peer Connection
The CTS-SXP peer connection must be configured on both devices. One device is the speaker and the other is the listener. When using password protection, make sure to use the same password on both ends.
Note
If a default CTS-SXP source IP address is not configured and you do not configure a CTS-SXP source address in the connection, the Cisco TrustSec software derives the CTS-SXP source IP address from existing local IP addresses. The CTS-SXP source IP address might be different for each TCP connection initiated from the router.
The
source keyword specifies the IPv4 address of the source device. If no address is specified, the connection uses the default source address, if configured, or the address of the port.
The
password keyword specifies the password that CTS-SXP uses for the connection using the following options:
default--Use the default CTS-SXP password you configured using the
ctssxpdefaultpassword command.
none--A password is not used.
The
mode keyword specifies the role of the remote peer device:
local--The specified mode refers to the local device.
peer--The specified mode refers to the peer device.
listener--Specifies that the device is the listener in the connection.
speaker--Specifies that the device is the speaker in the connection. This is the default.
The optional
vrf keyword specifies the VRF to the peer. The default is the default VRF.
(Optional) Displays CTS-SXP status and connections.
Configuring the Default CTS-SXP Password
SUMMARY STEPS
1.enable
2.configureterminal
3.ctssxpdefaultpassword[0 |
6 |
7]
password
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
ctssxpdefaultpassword[0 |
6 |
7]
password
Example:
Router(config)# cts sxp default password Cisco123
Configures the CTS-SXP default password. You can enter either a clear text password (using the
0 or no option) or an encrypted password (using the
6 or
7 option). The maximum password length is 32 characters.
Note
By default, CTS-SXP uses no password when setting up connections.
Configures the CTS-SXP default source IP address that is used for all new TCP connections where a source IP address is not specified.
Note
Existing TCP connections are not affected when the default CTS-SXP source IP address is configured.
Configuring the CTS-SXP Reconciliation Period
After a peer terminates a CTS-SXP connection, an internal hold-down timer starts. If the peer reconnects before the internal hold-down timer expires, the CTS-SXP reconciliation period timer starts. While the CTS-SXP reconciliation period timer is active, the CTS software retains the SGT mapping entries learned from the previous connection and removes invalid entries. The default value is 120 seconds (2 minutes). Setting the CTS-SXP reconciliation period to 0 seconds disables the timer and causes all entries from the previous connection to be removed.
SUMMARY STEPS
1.enable
2.configureterminal
3.ctssxpreconciliationperiodseconds
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
ctssxpreconciliationperiodseconds
Example:
Router(config)# cts sxp reconciliation period 150
Sets the CTS-SXP reconciliation timer, in seconds. The range is from 0 to 64000. The default is 120.
Configuring the CTS-SXP Retry Period
The CTS-SXP retry period determines how often the CTS software retries a CTS-SXP connection. If a CTS-SXP connection is not established successfully, then the CTS software makes a new attempt to set up the connection after the CTS-SXP retry period timer expires. The default value is 2 minutes. Setting the CTS-SXP retry period to 0 seconds disables the timer and retries are not attempted.
SUMMARY STEPS
1.enable
2.configureterminal
3.ctssxpretryperiodseconds
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
ctssxpretryperiodseconds
Example:
Router# cts sxp retry period 160
Sets the CTS-SXP retry timer, in seconds. The range is from 0 to 64000. The default is 120.
Creating Syslogs to Capture IP-to-SGT Mapping Changes
SUMMARY STEPS
1.enable
2.configureterminal
3.ctssxplogbinding-changes
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
ctssxplogbinding-changes
Example:
Router(config)# cts sxp log binding-changes
Enables logging for IP-to-SGT binding changes causing CTS-SXP syslogs (sev 5 syslog) to be generated whenever a change to IP-to-SGT binding occurs (add, delete, change). These changes are learned and propagated on the CTS-SXP connection.
Note
This logging function is disabled by default.
Configuring a Class Map for a Security Group Access Zone-Based Policy Firewall
Perform this task to configure a class map for classifying Security Group Access (SGA) zone-based policy firewall network traffic.
Note
You must perform at least one match step.
The zone-based firewall policy uses the security group tag (SGT) ID for filtering. In a zone-based firewall policy, only the first packet that creates a session matches the policy. Subsequent packets in this flow do not match the filters in the configured policy, but instead match the session directly. The statistics related to subsequent packets are shown as part of the inspect action.
SUMMARY STEPS
1.enable
2.configureterminal
3.class-map type inspect [match-any |
match-all]
class-map-name
4.match security-group source tagsgt-number
5.match security-group destination tagsgt-number
6.exit
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
class-map type inspect [match-any |
match-all]
class-map-name
Example:
Router(config)# class-map type inspect match-all cmap-1
Creates a Layer 3 or Layer 4 inspect type class map and enters class-map configuration mode.
Step 4
match security-group source tagsgt-number
Example:
Router(config-cmap)# match security-group source tag 100
Configures the match criterion for a class map based on the source SGT number.
Step 5
match security-group destination tagsgt-number
Example:
Router(config-cmap)# match security-group destination tag 200
Configures the match criterion for a class map based on the destination SGT number.
Step 6
exit
Example:
Router(config-cmap)# exit
Exits QoS class-map configuration mode and enters global configuration mode.
Creating a Policy Map for a Security Group Access Zone-Based Policy Firewall
Perform this task to create a policy map for a Security Group Access (SGA) zone-based policy firewall that is attached to zone pairs.
Creates a zone pair and enters security zone configuration mode.
Note
To apply a policy, you must configure a zone pair.
Step 8
service-policy type inspect policy-map-name
Example:
Router(config-sec-zone)# service-policy type inspect z1z2-policy2
Attaches a firewall policy map to the destination zone pair.
Note
If a policy is not configured between a pair of zones, traffic is dropped by default.
Step 9
end
Example:
Router(config-sec-zone)# end
Exits security zone configuration mode and enters global configuration mode.
Step 10
interfacetypenumber
Example:
Router(config)# interface GigabitEthernet 0/1/1
Configures an interface and enters interface configuration mode.
Step 11
zone-member securityzone-name
Example:
Router(config-if)# zone-member security Inside
Assigns an interface to a specified security zone.
Note
When you make an interface a member of a security zone, all traffic in and out of that interface (except traffic bound for the router or initiated by the router) is dropped by default. To let traffic through the interface, you must make the zone part of a zone pair to which you should apply a policy. If the policy permits traffic, traffic can flow through that interface.
Step 12
exit
Example:
Router(config-if)# exit
Exits security zone configuration mode and enters privileged EXEC mode.
Step 13
show policy-map type inspect zone-pair session
Example:
Router# show policy-map type inspect zone-pair session
(Optional) Displays the Cisco IOS stateful packet inspection sessions created because of the policy-map application on the specified zone pair.
Note
The information displayed under the class-map field is the traffic rate (bits per second) of the traffic that belongs to the connection-initiating traffic only. Unless the connection setup rate is significantly high and is sustained for multiple intervals over which the rate is computed, no significant data is shown for the connection.
Configuration Examples for Cisco TrustSec SGT Exchange Protocol IPv4
Router_B# show cts sxp connections
SXP : Enabled
Default Password : Set
Default Source IP: 10.10.1.1
Connection retry open period: 10 secs
Reconcile period: 120 secs
Retry open timer is not running
----------------------------------------------
Peer IP : 10.20.2.2
Source IP : 10.10.1.1
Conn status : On
Connection mode : SXP Listener
Connection inst# : 1
TCP conn fd : 1
TCP conn password: default SXP password
Duration since last state change: 0:00:21:25 (dd:hr:mm:sec)
Total num of SXP Connections = 1
Configuring a Security Group Access Zone-Based Policy Firewall Example
The following example shows the configuration of a class map and policy map for an SGA zone-based policy firewall.
Router> enable
Router# configure terminal
Router(config)# class-map type inspect match-all cmap-1
Router(config-cmap)# match security-group source tag 100
Router(config-cmap)# match security-group destination tag 200
Router(config-cmap)# exit
Router(config)# policy-map type inspect z1z2-policy
Router(config-pmap)# class type inspect cmap-1
Router(config-pmap-c)# inspect
Router(config-pmap-c)# exit
Router(config)# zone-pair security z1z2 source z1 destination z2
Router(config-sec-zone)# service-policy type inspect z1z2-policy2
Router(config-sec-zone)# end
Router(config)# interface GigabitEthernet 0/1/1
Router(config-if)# zone-member security Inside
Router(config-if)# exit
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.
Feature Information for Cisco TrustSec SGT Exchange Protocol IPv4
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 1
Feature Information for Cisco TrustSec SGT Exchange Protocol IPv4.
Feature Name
Releases
Feature Information
Cisco TrustSec SGT Exchange Protocol IPv4
12.2(53)SE2
12.2(50)SG5
12.2(33)SXI3
NX-OS 4.2.1
Cisco IOS XE Release 3.4S
15.1(3)S
15.2(2)T
The Security Group Tag (SGT) Exchange Protocol (SXP) is one of several protocols that supports CTS and is referred to in this document as CTS-SXP. CTS-SXP is a control protocol for propagating IP-to-SGT binding information across network devices that do not have the capability to tag packets. CTS-SXP passes IP-to-SGT bindings from authentication points to upstream devices in the network. This allows security services on switches, routers, or firewalls to learn identity information from access devices.
In Cisco IOS Release 12.2(53)SE2, this feature was introduced on the Cisco Catalyst 3500 and 3750 Series Switches.
In Cisco IOS Release 12.2(50)SG5, this feature was introduced on the Cisco Catalyst 4500 Series Switch.
In Cisco IOS Release 12.2(33)SXI3, this feature was introduced on the Cisco Catalyst 6500 Series Switches.
In Cisco NX-OS 4.2.1 Release, this feature was introduced on the Nexus 7000 Series Switches.
This feature was introduced in Cisco IOS Release 15.1(3)S.
This feature was introduced in Cisco IOS XE Release 3.4S.
The following commands were introduced or modified:
ctssxpenable,ctssxpconnectionpeer,
showctssxp,
ctssxpdefaultsource-ip,ctssxpreconciliationperiod,ctssxpretryperiod,ctssxplogbinding-changes.
This feature was integrated into Cisco IOS Release 15.2(2)T.
Support for Cisco TrustSec Solution on ISR Platforms
15.2(2)T
This feature helps CTS-SXP extend the deployment of network devices through Security Group Access (SGA) Zone-Based Policy firewalls (ZBPFs).
This feature was integrated into Cisco IOS Release 15.2(2)T.
The following commands were introduced or modified:
match security-group.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL:
www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.