Hi How are you? I hope you are doing great.
Thanks for coming to my blog, In this blog we discuss about HCX Tunnels.
HCX deploys few appliances as per the services enabled in compute profile, among them HCX-IX and HCX-NE these two appliances establish IPSec tunnels with the peer appliances on the target site.
In this blog, I would like to explore the tunnel configuration. Before exploring the HCX IPSec tunnels, let's try to understand what are IPSec tunnels.
What is IPSec?
- IPSec is short form of Internet protocol security.
- It is a group of protocols that are used together to setup encrypted connections between the two sites.
- IPSec tunnel encrypts and authenticates the data flowing through the tunnel.
- IPSec tunnel creates robust security layers to fully protect the data that is transmitting over the Internet or through an enterprise's network.
This is how tunnel works:
- To protect the data packets, IPSec peers(source and destination) need to establish a tunnel.
- To establish tunnel, IPSec uses protocol called IKE
- There will be two phases
In IKE phase 1, two peers will negotiate about encryption, authentication, hashing and other protocols they want to use and some other parameters that are required.
In this phase IKE phase-1 tunnel will be formed and it is only used for management traffic like keep-alives.
By using this first tunnel, we establish the second tunnel called IKE Phase 2 tunnel
- IKE builds the tunnels, but it don’t authenticate or encrypts the data, IPSec uses two other protocols AH (Authentication header ) and ESP (Encapsulating security payload).
- AH and ESP both offer authentication and integrity but only ESP supports encryption. Because of this, ESP is the most popular choice nowadays.
- Connect to HCX Connector (HCX Manager on the source site from which we migrate VMs) SSH Session.
- Then launch HCX central cli by typing the command ccli. It will take you HCX Central CLI mode.
- Type help command to list all the available commands.
- Type list command to see all the available HCX appliances. Here we can see IX , NE and SGW appliances are deployed and connected state.
- Now type command list so that you can go inside the HCX-IX appliance CLI.
- You can see IX appliance is selected now and the command prompt also changed to admin@hcx-connect-01a:HOL-1-IX-I1.
- Now type command ssh to go into linux shell of HCX-IX appliance.
- You can see the prompt changed. And logged into IX appliance as root.