Sophos AP/APX users may experience issues registering to Sophos Central. More info available here: Central Wireless
This article details how to install on Windows and Linux, using a link to the installer and from an installer in S3 bucket.
Applies to the following Sophos product(s) and version(s) Sophos Central Server Protection
When launching a new AWS instance, the following scripts should be entered in the User data field, they will then be run on launch to install Sophos.
Note: The User data field is on the Configure Instance Details page of the Launch Instance wizard, under the Advanced Details section.
If your instance does not appear in Sophos Central within a few minutes then:
In the following scripts replace the <LinkToInstaller> with the link to the correct Server Installer taken from Sophos Central as part of the prerequisites:
#! /bin/bash apt-get update -y
wget <LinkToInstaller> -P /tmp/
chmod +x /tmp/SophosInstall.sh
yum update -y
yum install gcc kernel-headers kernel-devel make -y
Invoke-WebRequest -Uri <LinkToInstaller> -OutFile C:\SophosInstall.exe
In the following scripts replace <BucketRegion>, <NameOfBucket> and <FolderInBucket> with the region (e.g. eu-west-1), bucket name and folder where the Sophos installer is saved.
Requires an IAM role on launch with at least read only access to your S3 bucket and the action AssumeRole on EC2 in the Trust Relationship. On the console you can select the IAM role to launch with on the Configure Instance Details page of the Launch Instance wizard.
apt-get -y update
apt-get -y install python-pip
pip install awscli
aws s3 cp --region <BucketRegion> s3://<NameOfBucket>/<FolderInBucket>/SophosInstall.sh /tmp/
yum install gcc kernel-headers kernel-devel make python-pip -y
Read-S3Object -BucketName <NameOfBucket> -Key <FolderInBucket>/SophosInstall.exe -File C:\SophosInstall.exe
If you've spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article. This is invaluable for us to ensure that we continually strive to give our customers the best information possible.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. For technical support post a question to the community. Or click here for new feature/product improvements. Alternatively for paid/licensed products open a support ticket.