Error 403: geofence:blocked

Hey there, i try to install but I get error ERROR 403: geofence:blocked.

Please also include all pertinent information;

  • Operating system & version: CentOS Linux release 7.9.2009 (Core)
  • Infrastructure agent version: latest, unable to install

Not sure as I am only in the UK and the server is too so its a bit odd, the docker on the same machine worked but not the cli


Hello @uuekzpq1. Welcome to the Explorers Hub!

I am sorry you are experiencing trouble. While I am unsure why you are seeing this with just the CLI, I am going to loop in one of our support engineers to provide their knowledge and expertise. Please note they will reply here shortly, when available.

Do reach out with any other questions you may have as well.

Hello @uuekzpq1 ,

It looks like you are encountering a firewall unique to your environment. Here is the script you are trying to download:

#!/usr/bin/env bash

# Install the New Relic CLI.
# Dependencies: curl, cut, tar, gzip
# The version to install and the binary location can be passed in via VERSION and DESTDIR respectively.

set -o errexit

echo "Starting installation."

# Determine release filename. This can be expanded with CPU arch in the future.
if [ "$(uname)" == "Linux" ]; then
elif [ "$(uname)" == "Darwin" ]; then
    echo "This operating system is not supported. The supported operating systems are Linux and Darwin"
    exit 1

if [ "$(uname -m)" == "x86_64" ]; then
elif [ "$(uname -m)" == "aarch64" ] || [ "$(uname -m)" == "arm64" ]; then
elif [ "$(uname -m)" == "armv7l" ]; then
    echo "This machine architecture is not supported. The supported architectures are x86_64, aarch64, armv7."
    exit 1

for x in cut tar gzip sudo; do
    which $x > /dev/null || (echo "Unable to continue.  Please install $x before proceeding."; exit 1)

DISTRO=$(cat /etc/issue /etc/system-release /etc/redhat-release /etc/os-release 2>/dev/null | grep -m 1 -Eo "(Ubuntu|Amazon|CentOS|Debian|Red Hat|SUSE)" || true)

IS_CURL_INSTALLED=$(which curl | wc -l)
if [ $IS_CURL_INSTALLED -eq 0 ]; then
    echo "curl is required to install, please confirm Y/N to install (default Y): "
    read -r CONFIRM_CURL
    if [ "$CONFIRM_CURL" == "Y" ] || [ "$CONFIRM_CURL" == "y" ] || [ "$CONFIRM_CURL" == "" ]; then
        if [ "$DISTRO" == "Ubuntu" ] || [ "$DISTRO" == "Debian" ]; then
            sudo apt-get update
            sudo apt-get install curl -y
        elif [ "$DISTRO" == "Amazon" ] || [ "$DISTRO" == "CentOS" ] || [ "$DISTRO" == "Red Hat" ]; then
            sudo yum install curl -y
        elif [ "$DISTRO" == "SUSE" ]; then
            sudo zypper -n install curl
            echo "Unable to continue. Please install curl manually before proceeding."; exit 131
        echo "Unable to continue without curl. Please install curl before proceeding."; exit 131

# GitHub's URL for the latest release, will redirect.

if [ -z "$VERSION" ]; then
    VERSION=$(curl -sL $LATEST_URL | cut -d "v" -f 2)

echo "Installing New Relic CLI v${VERSION}"

# Run the script in a temporary directory that we know is empty.
SCRATCH=$(mktemp -d || mktemp -d -t 'tmp')

function error {
  echo "An error occurred installing the tool."
  echo "The contents of the directory $SCRATCH have been left in place to help to debug the issue."

trap error ERR


# Download & unpack the release tarball.
curl -sL --retry 3 "${RELEASE_URL}" | tar -xz

if [ "$UID" != "0" ]; then
    echo "Installing to $DESTDIR using sudo"
    sudo mv newrelic "$DESTDIR"
    sudo chmod +x "$DESTDIR/newrelic"
    sudo chown root:0 "$DESTDIR/newrelic"
    echo "Installing to $DESTDIR"
    mv newrelic "$DESTDIR"
    chmod +x "$DESTDIR/newrelic"
    chown root:0 "$DESTDIR/newrelic"

# Delete the working directory when the install was successful.
rm -r "$SCRATCH"

If your networking continues to be an issue, please take a look at this document for IP ranges.
Network Traffic

Hope this helps.