Install IPSec on G-vTAP Agent

If IPSec is used to establish secure connection between G-vTAP agents and GigaVUE V Series nodes, then you must install IPSec on G-vTAP agent instances. To install IPSec on G-vTAP agent you need the following files:

Note:  IPSec cannot be installed on G-vTAP agents that are running on Windows OS. Therefore, if a monitoring session has targets with both Windows and Linux OS, only the linux agents will communicate over the secure connection. Windows agent will communicate only through the VxLAN Tunnel.

Refer to the following sections for installing IPSec on G-vTAP Agent:

Install G-vTAP from Ubuntu/Debian Package

  1. Launch the Ubuntu/Debian image.
  2. Copy the G-vTAP package files and strongSwan TAR file to the G-vTAP agent:
  3. Install the G-vTAP agent package file:
    sudo dpkg -i gvtap-agent_1.7-1_amd64.deb
  4. Modify the file /etc/gvtap-agent/gvtap-agent.conf to configure and register the source and destination interfaces:
    eth0# mirror-src-ingress mirror-src-egress mirror-dst
    sudo /etc/init.d/gvtap-agent restart
    sudo /etc/init.d/gvtap-agent status

    Note:  You can view the G-vTAP log using cat /var/log/gvtap-agent.log command.

  5. Install strongSwan:
    tar -xvf strongswan5.3.5-1ubuntu3.8_amd64-deb.tar.gz
    cd strongswan-5.3.5-1ubuntu3.8_amd64/
    sudo sh ./swan-install.sh
  6. Install IPSec package:
    sudo dpkg -i gvtap-ipsec_1.7-1_amd64.deb

Install G-vTAP from Red Hat Enterprise Linux and Centos

  1. Launch RHEL/Centos agent image.
  2. Copy the following package files and strongSwan TAR files to the G-vTAP agent:
  3. Install G-vTAP agent package:
    sudo rpm -ivh gvtap-agent_1.7-1_x86_64.rpm
  4. Edit gvtap-agent.conf file to configure the required interface as source/destination for mirror:
    # eth0 mirror-src-ingress mirror-src-egress mirror-dst
    # sudo /etc/init.d/gvtap-agent restart
  5. Install strongSwan:
    tar -xvf strongswan-5.7.1-1.el7.x86_64.tar.gz
    cd strongswan-5.7.1-1.el7.x86_64
    sudo sh ./swan-install.sh
  6. Install IPSec package:
    sudo rpm -i gvtap-ipsec_1.7-1_x86_64.rpm

Note:  You must install IPSec package after installing StrongSwan.

Install G-vTAP from Red Hat Enterprise Linux and Centos with Selinux Enabled

  1. Launch the RHEL/Centos agent image.
  2. Copy package files and strongSwan TAR file to G-vTAP agent.
  3. Checkmodule -M -m -o gvtap.mod gvtap.te
    semodule_package -o gvtap.pp -m gvtap.mod
    sudo semodule -i gvtap.pp
  4. Checkmodule -M -m -o gvtap_ipsec.mod gvtap_ipsec.te
    semodule_package -o gvtap_ipsec.pp -m gvtap_ipsec.mod
    sudo semodule -i gvtap_ipsec.pp
  5. Install G-vTAP agent package:
    sudo rpm -ivh gvtap-agent_1.7-1_x86_64.rpm
  6. Edit gvtap-agent.conf file to configure the required interface as source/destination for mirror:
    # eth0 mirror-src-ingress mirror-src-egress mirror-dst
    # sudo /etc/init.d/gvtap-agent restart
  7. Install strongSwan:
    tar -xvf strongswan-5.7.1-1.el7.x86_64.tar.gz
    cd strongswan-5.7.1-1.el7.x86_64
    sudo sh ./swan-install.sh
  8. Install IPSec package:
    sudo rpm -i gvtap-ipsec_1.7-1_x86_64.rpm