Interdomain Federation for IM and Presence Service on Cisco Unified Communications Manager, Release 9.1(1)
Configuration of load balancer for redundancy for SIP federation

Configuration of load balancer for redundancy for SIP federation

About load balancer

For redundancy and high-availability purposes, you can incorporate a load balancer into the federated network. Cisco recommends the Cisco CSS 11500 Content Services Switch, which is placed between the IM and Presence server and the Cisco Adaptive Security Appliance (see High availability for SIP federation).

The load balancer terminates incoming TLS connections from Cisco Adaptive Security Appliance, and initiates a new TLS connection to route the content to the appropriate backend IM and Presence server.

IM and Presence server updates

When using a load balancer for redundancy, you must update settings on the IM and Presence publisher and subscriber nodes.

Procedure

Task

Procedure

Update the federation routing parameter

Select Cisco Unified CM IM and Presence Administration > System > Service Parameters > Cisco SIP Proxy from the Service menu and enter these values:

  • Virtual IP Address - enter the virtual IP address set on the load balancer
    1. Server Name - set to the FQDN of the load balancer
    2. Federation Routing IM and Presence FQDN - set to the FQDN of the load balancer.

Create a new TLS peer subject

  1. Select Cisco Unified CM IM and Presence Administration > System > Security > TLS Peer Subjects.
  2. Click Add New and enter these values:
    • Peer Subject Name - enter the external FQDN of the load balancer
    • Description - enter the name of the load balancer

Add the TLS peer to the TLS peer subjects list

  1. Select Cisco Unified CM IM and Presence Administration > System > Security > TLS Context Configuration.
  2. Click Find.
  3. Click Default_Cisco_UPS_SIP_Proxy_Peer_Auth_TLS_Context.
  4. Move the load balancer federation-TLS peer subject for the load balancer to the selected TLS peer subjects list.

Cisco Adaptive Security Appliance updates

When using a load balancer, the foreign domain still sends messages to the public IM and Presence address, but the Cisco Adaptive Security Appliance maps that address to a virtual IP address on the load balancer. Thus, when the Cisco Adaptive Security Appliance receives messages from the foreign domain, it forwards it to the load balancer. The load balancer then passes it on to the appropriate IM and Presence servers.

To support this configuration, you must make some changes to the Cisco Adaptive Security Appliance:

Static PAT message updates

You must update the static PAT messages to include the load balancer details.

Procedure

Task

Cisco Adaptive Security Appliance Release 8.2 Command

Cisco Adaptive Security Appliance Release 8.3 Command

Changes Required for IM and Presence Publisher


Change the static PAT to use an arbitrary, unused port for the public IM and Presence address.

Change: static 
(inside,outside) tcp 
<Public 
IM and Presence 
IP address> 
5061 <Routing 
IM and Presence 
private IP address> 
5062 netmask 
255.255.255.255
to:

static (inside,outside) 
tcp <Public 
IM and Presence 
IP 
address> 55061 <Routing 
IM and Presence
/Publisher private 
IP address> 5062 
netmask 255.255.255.255
object service obj_tcp_ 
source_eq_5061# service 
tcp source eq 5061

nat (inside,outside) 
source static 
obj_host_<Routing
IM and Presence 
Private IP address> 
obj_host_<public 
IM and Presence ip
address> service 
obj_tcp_source_eq_5062
obj_tcp_source_eq_5061

to

object service obj_tcp_ 
source_eq_55061# 
service tcp source eq 
55061

nat (inside,outside) 
source static 
obj_host_<Routing
IM and Presence 
Private IP address> 
obj_host_<public 
IM and Presence ip
address> service 
obj_tcp_source_eq_5062
obj_tcp_source_eq_55061

Add a new static PAT to allow messages sent to the public IM and Presence address to be forwarded to the virtual port address (on whichever port the load balancer is listening for TLS messages).

static (inside,outside) 
tcp <Public 
IM and Presence 
address> 5061 <Load 
Balancer VIP> 5062 
netmask 
255.255.255.255.
object network 
obj_host_<Loadbalancer 
VIP>#host <routing 
IM and Presence 
private address>

object service obj_tcp_ 
source_eq_5061
# service tcp source eq 
5061

nat (inside,outside) 
source static
obj_host_<LoadBalancer 
VIP> obj_host_<public 
IM and Presence
ip address> service 
obj_tcp_source_eq_5062
obj_tcp_source_eq_5061

Changes Required for IM and Presence Subscriber

Add a new access list for the load balancer virtual IP address. You must add an access list for each foreign domain that IM and Presence needs to access.

access-list ent_lber_to_foreign_ocs extended 
permit tcp host <subscriber private ip address> 
host <foreign domain public IP address> 5061



access-list ent_lcs_to_lber_routgcup extended 
permit tcp host <foreign domain public ip 
address> host 
<IM and Presence public ip address> 65061

Add a new access list for a foreign domain to initiate messages to a IM and Presence server when the load balancer virtual IP address is in place. You must add an access list for each foreign domain that needs to access IM and Presence.

Related Information

Access list updates

To support the load balancer, you also need to update the access lists on the Cisco Adaptive Security Appliance specific to your deployment scenario.


Note


The IM and Presence public IP address refers to the public IP address of the IM and Presence domain as configured on Cisco Adaptive Security Appliance, and as it appears in the DNS record. This record shows the FQDN of the load balancer containing the public IP of Cisco Adaptive Security Appliance.


Procedure

Deployment Scenario

Task

Configuration Example

An IM and Presence server federating with one or more foreign domains

Add a new access list for the new load balancer virtual IP address. You must add an access list for each foreign domain that IM and Presence needs to access.

Publisher:

Cisco Adaptive Security Appliance Release 8.2 and 8.3 Command:

access-list ent_lber_to_foreign_ocs extended permit tcp host <Virtual IP address> host <foreign domain public IP address> eq 5061

Add a new access list for a foreign domain to initiate messages to a IM and Presence server when the load balancer virtual IP address is in place. You must add an access list for each foreign domain that needs to access IM and Presence.

Publisher:

Cisco Adaptive Security Appliance Release 8.2 Command:

access-list ent_lcs_to_lber_routgcup extended permit tcp host <foreign domain public ip address> host <cup public ip address> eq 5062

Cisco Adaptive Security Appliance Release 8.3 Command:

access-listent_foreign_server_to_lb
extended permit tcp host
<foreign public address>
host <Loadbalancer
Virtual IP address> eq
5062

For each access list, add a new class to incorporate the new access list.

class ent_lber_to_foreign_ocs match access-list ent_lber_to_foreign_ocs

For each class, make an entry in the policy-map global_policy for messages initiated by IM and Presence.

policy-map global_policyclass ent_lber_to_foreign_ocs
inspect sip sip_inspect tls-proxy ent_cup_to_foreign

For each class, make an entry in the policy-map global_policy for messages initiated on a foreign domain.

policy-map global_policyclass ent_lcs_to_lber_routgcup
inspect sip sip_inspect tls-proxy ent_foreign_to_cup

IM and Presence to IM and Presence Federation, where the foreign domain has added one or more intercluster IM and Presence servers

The foreign domain ASA must allow access to the arbitrary ports which have been chosen for our local domain publisher and the subscriber.

access-list ent_cup_to_foreignPubcupwlber extended permit tcp host <foreign domain private CUP address> host <public CUP address of our local domain> 55061
access-list ent_cup_to_foreignSubcupwlber extended permit tcp host <foreign domain private CUP address> host <public CUP address of our local domain> 65061

For each access list, add a new class to incorporate the new access list.

For each class, make an entry in the policy-map global_policy.

TLS proxy instance updates

Update the TLS proxy instances on the Cisco Adaptive Security Appliance.

Procedure

Task

Configuration Example

Update TLS-PROXY

Change

tls-proxy ent_foreign_to_cup server trust-point msoft_publicfqdn
 client trust-point cup_proxy
 client cipher-suite aes128-sha1 aes256-sha1 3des-sha1 null-sha1
!
tls-proxy ent_cup_to_foreign
 server trust-point cup_proxy
 client trust-point msoft_publicfqdn
 client cipher-suite aes128-sha1 aes256-sha1 3des-sha1 null-sha1

to:

tls-proxy ent_foreign_to_cup server trust-point msoft_publicfqdn
 client trust-point msoft_publicfqdn
 client cipher-suite aes128-sha1 aes256-sha1 3des-sha1 null-sha1
!
tls-proxy ent_cup_to_foreign
 server trust-point msoft_publicfqdn
 client trust-point msoft_publicfqdn
 client cipher-suite aes128-sha1 aes256-sha1 3des-sha1 null-sha1

CA-signed security certificate updates

When adding the load balancer to the configuration, you must also generate CA-signed security certificates between the load balancer and the Cisco Adaptive Security Appliance and IM and Presence server as described in these sections:

Security certificate configuration between load balancer and Cisco Adaptive Security Appliance

This topic provides an overview of the required steps for configuring the security certificate between the load balancer and the Cisco Adaptive Security Appliance. For details, refer to Cisco CSS 11500 Content Services Switch documentation: http:/​/​www.cisco.com/​en/​US/​products/​hw/​contnetw/​ps792/​products_​installation_​and_​configuration_​guides_​list.html

Procedure

Task

Procedure

Generate CA-signed certificate for the load balancer on the Cisco Adaptive Security Appliance.

Use the crypto ca enroll command and specify the FQDN of the load balancer.

Import the CA-signed certificate from the Cisco Adaptive Security Appliance to the load balancer.

Use the copy ssl command.

Generate a CA-signed certificate for the Cisco Adaptive Security Appliance on the load balancer.

These steps provide an overview but refer to the CSS SSL Configuration Guide for details:

  1. Enter global configuration mode (config).
  2. Generate the RSA key pair used in the exchange (ssl genrsa).
  3. Associate the generated RSA key pair with a file (ssl associate)
  4. Generate the Certificate Signing Request (ssl gencsr).
  5. Obtain a root CA certificate from the CA.
  6. Transfer the CSR to the CA.
  7. Re-import the signed certificate into the load balancer (copy ssl and ssl associate).

Import the CA-signed certificate from the load balancer to the Cisco Adaptive Security Appliance

Use the crypto ca trustpoint command.

To verify that the certificate was imported, use the show crypto ca certificate command.

Security certificate configuration between load balancer and IM and Presence server

This topic provides an overview of the required steps for configuring the security certificate between the load balancer and the IM and Presence nodes.

Procedure

Task

Procedure

Generate a CA-signed certificate on both the publisher and subscriber nodes.

Follow the instructions to exchange certificates using CA-signed certificates.

Import the CA-signed certificates (from the publisher and subscriber nodes) to the load balancer

Use the copy ssl and ssl associate commands.

Microsoft component updates

You must update some Microsoft components with the load balancer details.

Procedure

Task

Procedure

Update all instances of the FQDN to correspond to the load balancer FQDN.

Update the domain name in the IM Provider list with the load balancer.

  1. Select Start > Administrative Tools > Computer Managementon the external Access Edge server.
  2. Right-click Microsoft Office Communications Server 2007 in the left pane.
  3. Click the IM Provider tab.
  4. Click Add.
  5. Check Allow the IM service provider.

Define the network address of the IM service provider as the public FQDN of the Load Balancer

AOL component updates

If you incorporate a load balancer into your AOL federation deployment, you must provide AOL with some details about the load balancer. Refer to the section in the Related topics for details.

Load balancer configuration

This topic gives an overview of the necessary tasks for configuring the Cisco CSS 11500 Content Services Switch for this integration. The Cisco CSS 11500 Content Services Switch must have an SSL Accelerator Module installed and configured in back-end SSL mode.For detailed information on each task, refer to the Cisco CSS 11500 Content Services Switch documentation at the following URL:

http:/​/​www.cisco.com/​en/​US/​products/​hw/​contnetw/​ps792/​products_​installation_​and_​configuration_​guides_​list.html

Procedure

Task

Additional Notes

Configure certificate exchange between Cisco CSS 11500 Content Services Switch and IM and Presence.

  • CA or self-signed certificates can be used in the SSL module.
  • You need to generate a certificate for the Cisco CSS 11500 Content Services Switch, and import this onto the remote server.
  • You need to import the certificate from the remote server onto the Cisco CSS 11500 Content Services Switch.

Configure certificate exchange between Cisco CSS 11500 Content Services Switch and Cisco Adaptive Security Appliance.

You must define a virtual SSL server in an SSL proxy list for an SSL module to properly process and terminate SSL communications from the client and initiate a HTTP connection to the server.

  • You must specify the IP address and port number that the Cisco Adaptive Security Appliance points to.
  • You must specify the name of the existing certificate and key pair for the Cisco Adaptive Security Appliance.

Create a Back-End SSL server entry in SSL Proxy List for each IM and Presence server.

  • You must specify the IM and Presence server address. Note that the IM and Presence servers (back-end servers) must be on a different subnet than the VIP address.
  • The back-end server connection can be a different TLS cipher suite than the front-end, or can be TCP.
  • You must specify the port to receive the TLS traffic on the Cisco CSS 11500 Content Services Switch.
  • You must specify the port to send the TLS traffic to the IM and Presence servers.

Create an SSL service for SSL termination for each IM and Presence server.

  • When specifying the keepalive port, ensure that the port number is the same as those you configured for the Back-End SSL server entries.
  • The keepalive message type value should be "tcp".

Create the SSL module.

  • You must specify the physical slot number of the SSL module. Use the CSS command "show chassis" to retrieve this slot number.
  • In the SSL module you must associate a IM and Presence server with an SSL service, for example add ssl-proxy-list called ssl_list1.

Create an internal content rule to route the decrypted data from the ASA to IM and Presence server.

Create content rule to route TLS data to the SSL module for decryption and load-balancing.

Create a NAT association between the VIP and the back-end IM and Presence servers.

When using a Cisco CSS 11500 Content Services Switch directly between IM and Presence and Microsoft OCS (no Cisco Adaptive Security Appliance), you must be able to resolve the certificate Subject Common Name for the IM and Presence server to IM and Presence IP address from OCS. Also each IM and Presence server Subject Common Name must be in the OCS host authorization list.