Using a Vyatta Appliance, you can establish a secure site-to-site VPN connection connection between your cloud infrastructure at any Rackspace site and your data center or existing IT infrastructure location.
This site-to-site VPN connection enables you to extend your IT infrastructure to the Rackspace Cloud and “burst” extra compute requirements into the Rackspace Cloud.
Vyatta supports both policy-based and route-based VPNs. In this article we show you how to configure a policy-based VPN on the Vyatta.
For a comprehensive guide to VPN configuration on the Vyatta, click here
For guidance on configuring the relevant firewall rules to allow VPN traffic on the Vyatta please refer to the following article:
There are three main components of the Internet Protocol security (IPsec) architecture:
Of these protocols, the Vyatta Appliance currently supports ESP, which encrypts the packet payload and prevents it from being monitored; and IKE, which provides a secure method of exchanging cryptographic keys and negotiating authentication and encryption methods.
The following diagram shows a site-to-site VPN connection between two sites. For simplicity ,we show the configuration of Site-to-site VPN between two Rackspace sites (both using Vyatta).

To successfully implement an IPsec VPN site-to-site connection, you must complete the following configurations on both IPsec endpoints:
This article describes how to configure a site-to-site VPN using two Vyatta Appliances. For the purpose of this example, we'll assume one appliance is located in the DFW datacenter and the other is the ORD datacenter.
To complete this configuration, you'll perform the following steps:
Note: eth0 is the Public interface enabled for IPsec
ssh vyatta@64.X.X.101Where 64.x.x.101 is the IP address of the Vyatta appliance. You'll see a Welcome to Vyatta message and a prompt to enter your password.
Once you're logged into the appliance, you can enter a ? or press the Tab key for help.
vyatta@vyatta: configure
vyatta@vyatta#
The # symbol indicates you're in configuration mode.
set vpn ipsec ipsec-interfaces interface eth0
vyatta@vyatta# show vpn ipsec ipsec interfaces
interface eth0
Note: Do not issue the commit command yet!
The IKE group allows you to pre-define a set of one or more proposals to be used in IKE Phase 1 negotiation, after which the ISAKMP security association (SA) can be set up. For each proposal in the group, the following information is defined:
In this example we create IKE group IKE-1W on Vyatta-DFW. This IKE group contains two proposals:
The lifetime of a proposal from this IKE group is set to 3600 seconds.
set vpn ipsec ike‐group IKE‐1W proposal 1
set vpn ipsec ike‐group IKE‐1W proposal 1 encryption aes256
set vpn ipsec ike‐group IKE‐1W proposal 1 hash sha1
set vpn ipsec ike‐group IKE‐1W lifetime 3600
show vpn ipsec ike‐group IKE‐1W
lifetime 3600 proposal 1 encryption aes256 hash sha1 } proposal 2 encryption aes128 hash sha1 }
Note: Do not issue the commit command yet!
In this example we create an ESP group ESP-1W on Vyatta-DFW. This ESP group contains two proposals:
The lifetime of a proposal from this ESP group is set to 1800 seconds.
set vpn ipsec esp‐group ESP‐1W proposal 1
set vpn ipsec esp‐group ESP‐1W proposal 1 encryption aes256
set vpn ipsec esp‐group ESP‐1W proposal 1 hash sha1
set vpn ipsec esp‐group ESP‐1W lifetime 1800
show vpn ipsec esp‐group ESP‐1W
lifetime 1800{ proposal 1 encryption aes256 hash sha1 } proposal 2 { encryption 3des hash sha1 }
Note: Do not issue the commit command yet!
Complete the following steps:
edit vpn ipsec site‐to‐site peer 198.x.x.101
set authentication mode pre‐shared‐secret
set authentication pre‐shared‐secret SECRET
set default‐esp‐group ESP‐1W
set ike‐group IKE‐1W
set local-address 64.x.x.101
set tunnel 1 local prefix 192.168.1.0/24
set tunnel 1 remote prefix 192.168.3.0/24
top
commit
To complete this configuration, repeat the same steps on the Vyatta Appliance in the ORD datacenter, using the correct IP addressing, ESP, and IKE. This configuration includes the following steps:
Use the previous sections to complete the configuration on Vyatta-ORD, then return to Step 6 below.
With both Vyatta Appliances configured, you can verify the tunnel status.
Verify tunnel is up:
vyatta@vyatta:~$ show vpn ipsec sa
Peer ID / IP Local ID / IP
------------ -------------
198.x.x.101 64.x.x.101
Tunnel State Bytes Out/In Encrypt Hash NAT-T A-Time L-Time Proto ------ ----- ------------- ------- ---- ----- ------ ------ ----- 1 up 0.0/0.0 aes256 sha1 no 906 1800 all
Verify the tunnel status:
vyatta@vyatta:~$ show vpn ipsec status
IPSec Process Running PID: 13088
1 Active IPsec Tunnels
IPsec Interfaces :
eth0 (64.x.x.101)© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

0 Comments
Add new comment