Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

For Amazon Web Services users who:

  • Use a set hostname,
  • Use Elastic Beanstalk to run their instance's applications, and
  • Run Amazon Linux 2015.03, 2015.09, 2016.03, 2016.09, 2017.03, or 2017.09.

Review the following example to understand how to install the Anywhere agent. Afterwards, you can skip to the Test your connection step.

Code Block
themeMidnight
commands:
  01_install_agent:
    test: if [ $(rpm -q armor-agent | head -c11) == 'armor-agent' ]; then exit 1; else exit 0; fi
    command: |
      echo "<host_name>$(date +%Y%m%d%H%M%S)" > /proc/sys/kernel/hostname
      sed -i "s/HOSTNAME=.*/HOSTNAME=$(cat /proc/sys/kernel/hostname)/g" /etc/sysconfig/network
      yum install -y https://get.core.armor.com/latest/armor-agent.rpm
      /opt/armor/armor register --license=AAAA1-A11AA-AA1AA-AAAAA-1AAA
Tip

You must replace:

  • AAAA1-A11AA-AA1AA-AAAAA-1AAA with your specific license key
  • HOSTNAME and hostname with your specific hostname.

...

Script type

Description

Pre-installation

You can use these scripts to verify that your environment is compatible with Armor Anywhere. These scripts will not install the agent.

Code Block
themeMidnight
sudo curl -
sSL https
sSL https://get.core.armor.com/latest/armor_agent.
sh 
sh | bash /dev/stdin
Pre-installation and installation

You can use these scripts to:

  • Verify that your environment is compatible with Armor Anywhere
  • Install the agent
Code Block
themeMidnight
sudo curl -
sSL https
sSL https://get.core.armor.com/latest/armor_agent.
sh 
sh | bash /dev/stdin -l AAAA1-A11AA-AA1AA-AAAAA-1AAA
Installation

You can use these scripts to install the agent. These scripts will not verify your environment for compatibility. 

Code Block
themeMidnight
sudo curl -
sSL https
sSL https://get.core.armor.com/latest/armor_agent.
sh 
sh | bash /dev/stdin -l AAAA1-A11AA-AA1AA-AAAAA-1AAA -s
Tip

In the above scripts, replace AAAA1-A11AA-AA1AA-AAAAA-1AAAwith your specific license key.


Step 3: Test your connection

Excerpt IncludeESLP:Test your connection (snippet)ESLP:Test your connection (snippet)nopaneltrueAfter you install the agent, Armor recommends that you test the connection for each configured firewall rule.

To verify connectivity to an Armor service endpoint, use the telnet command.

Tip

The following example tests connectivity to api.armor.com over 443/tcp:

Code Block
themeMidnight
telnet 146.88.106.210 443


For Windows systems without the telnet feature installed, you can also use PowerShell:

Code Block
themeMidnight
new-object System.Net.Sockets.TcpClient('146.88.106.210', 443)



Step 4: Review the status of the Armor Anywhere agent 

...