Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring MD5 Authentication for BGP Sessions

Contrail supports MD5 authentication for BGP peering based on RFC 2385.

This option allows BGP to protect itself against the introduction of spoofed TCP segments into the connection stream. Both of the BGP peers must be configured with the same MD5 key. Once configured, each BGP peer adds a 16-byte MD5 digest to the TCP header of every segment that it sends. This digest is produced by applying the MD5 algorithm on various parts of the TCP segment. Upon receiving a signed segment, the receiver validates it by calculating its own digest from the same data (using its own key) and compares the two digests. For valid segments, the comparison is successful since both sides know the key.

The following are ways to enable BGP MD5 authentication and set the keys on the Contrail node.

  1. If the md5 key is not included in the provisioning, and the node is already provisioned, you can run the following script with an argument for md5:
  2. You can also use the web user interface to configure MD5.
    • Connect to the node’s IP address at port 8080 (<node_ip>:8080) and select Configure->Infrastructure->BGP Routers. As shown in Figure 1, a list of BGP peers is displayed.

      Figure 1: Edit BGP Router WndowEdit BGP Router Wndow
    • For a BGP peer, click on the gear icon on the right hand side of the peer entry. Then click Edit. This displays the Edit BGP Router dialog box.

    • Scroll down the window and select Advanced Options.

    • Configure the MD5 authentication by selecting Authentication Mode>MD5 and entering the Authentication Key value.