---
updatedAt: 2026-11-18T16:53:35.000Z
agentTools:
  projectIndex: https://docs.greynoise.io/llms.txt
---

# Sensor Installation Guide

The following provides a basic overview of how to perform an installation of a GreyNoise Sensor on a Customer Hosted device.

# Pre-Install

## System Requirements

* An internet-facing Linux box running a supported operating system:
  * Linux Kernel >= 5.6
  * Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04, Debian 13
  * Minimum supported hardware and CPU requirements:
    * 1 vCPU, 512MB RAM, and 8GB storage
* Root-level access
* A public IP address
* This host must ***not*** be used for any other purposes and dedicated to serving as a GreyNoise Sensor.  All traffic will be forwarded to the GreyNoise Cloud using a Wireguard tunnel, where our backend will handle making the sensor ‘look’ like the deception profile you assign to your sensor.
  * By default, the SSH port will be changed to a non-standard SSH port. You can only SSH into the sensor via the installation's configured *SSH Management Port*.
  * The installer checks whether ports 80 or 443 are already in use and **will abort** if another service is bound to them. Stop or remove any existing web servers or other listeners before installing.
* We recommend using infrastructure that can be easily destroyed/rebuilt.

> 🚧 Static IP Required
>
> We rely on a stable, static IP address to be assigned to each Sensor for the life of that sensor. If your sensor is using a DHCP-provided IP address from your provider, e.g. an ISP, the Greygent will handle remapping your IP automatically when it changes.

<br />

## Prerequisites

The sensor establishes an encrypted WireGuard tunnel to the GreyNoise Cloud. Your firewall must permit the following **outbound** traffic from the sensor:

| Direction | Protocol | Port  | Destination        | Purpose                                                          |
| --------- | -------- | ----- | ------------------ | ---------------------------------------------------------------- |
| Outbound  | UDP      | 45000 | GreyNoise gateway  | WireGuard tunnel (required)                                      |
| Outbound  | UDP      | 25000 | GreyNoise gateway  | Hardware-profile tunnel (only if a hardware profile is assigned) |
| Outbound  | TCP      | 443   | `api.greynoise.io` | Bootstrap, registration, health reporting                        |
| Outbound  | UDP/TCP  | 53    | Your DNS resolver  | Name resolution (see DNS note)                                   |

The tunnel is keepalive-based (every 25 seconds); ensure stateful firewalls do not prematurely expire the UDP flow.

## Unique Environment Requirements

### Google GCP

When installing a GreyNoise Sensor on a Google GCP system, an additional pre-installation step is required. Before running the sensor installation script, ensure that the `/etc/hosts` file contains an entry for `127.0.0.1 localhost`. This is not included by default and can cause unexpected behavior with the system after the sensor installation script is executed.

### Public IP Considerations

The installation process should work out of the box in most scenarios. However, in some scenarios, the public IP(s) associated with a sensor will need to be provided with the `-p` flag:

* When multiple IPs are associated with the sensor
* When the IP(s) are not the default route to the internet (we test using 8.8.8.8)

If either of these applies, use the `-p` flag with a comma-separated list of IPs or CIDRs for the sensors.

# Installing the Sensor

> ❗️ Provision Server First
>
> Before continuing with sensor installation, ensure you have SSH access to the host that you will use as your sensor.

## Ensure Sensor access on GreyNoise Visualizer

Log in to the GreyNoise Visualizer and navigate to **Observe** --> **Sensors**.

<Image src="https://files.readme.io/0d04547dd3d3366fdfa15e0aff9c5425142fc3ce02194540ec84cb6423f06b62-Screenshot_2026-02-26_at_9.53.27_PM.png" align="center" />

> 📘 Is the Sensor tab missing?
>
> If you don’t see the sensors tab, try logging out and back in. If you still can’t see it, you may not have been provisioned correctly for early access. Contact <support@greynoise.io> if you are an early access participant that cannot see your sensors.

Obtain your unique sensor installation command by clicking `I have a sensor ready` in the Visualizer, which is visible if this is your first sensor installation.

<Image src="https://files.readme.io/00f3c34efba65f03a87afe95ff116862af10d7ea737c6974a890785d3371fb08-Screenshot_2026-04-09_at_1.28.47_PM.png" align="center" />

Your installation command will look like this:

```shell
GREYNOISE_API_KEY=<your API key> && curl -H "key: ${GREYNOISE_API_KEY}" -L https://api.greynoise.io/v1/workspaces/<your workspace ID>/sensors/bootstrap/script | sudo bash -s -- -k ${GREYNOISE_API_KEY}
```

SSH into your sensor, copy and paste the sensor installation command from the sensor management screen into your terminal, and run the command as a user with superuser permissions.

<Image src="https://files.readme.io/e40b9e65649b0d14bd51fd0b27b0933f0cade53a1a7088c8ee13c24ec5fa013a-image.png" align="center" caption="Running the sensor installation command in the terminal" border={true} />

The Installation should proceed with your session on the host being terminated at the end of the installation. 🎉

Return to the Visualizer Sensors Page to see your new sensor.

<Image src="https://files.readme.io/340223aaaa9c4b1c30c421b0ca97112cd82257f42f0791204779e7e431462f7a-image.png" align="center" caption="Sensors Page With Sensor" />

> 🚧 SSH Port Change
>
> Once installation is complete, you will be logged out of your existing SSH session. You will be able to SSH back into your sensor with the new SSH management port configured post-installation. By default the port is randomly generated and provided in the output of the script. This can be customized during the installation.
>
> Example connection with customer port: `ssh -p 3822 ubuntu@mysensorip`

### Customized Installation Using Optional Parameters

The default installation command works for most sensors. If you need to change how the sensor is set up, for example to give it a name, choose its SSH port, or have it listen on more than one public IP address, add any of the options below to the end of the installation command.

For example, to name the sensor and have it listen on one address plus a small range of addresses, first set your GreyNoise API key and workspace ID, replacing the placeholders with your own values:

```
export GREYNOISE_API_KEY=<your API key>
export GREYNOISE_WORKSPACE_ID=<your workspace ID>
```

Then run the installation command with your options added to the end:

```
curl -H "key: ${GREYNOISE_API_KEY}" -L https://api.greynoise.io/v1/workspaces/${GREYNOISE_WORKSPACE_ID}/sensors/bootstrap/script | sudo bash -s -- -k ${GREYNOISE_API_KEY} -o "Office Sensor" -p 203.0.113.10,203.0.113.32/29
```

Always add options after `-k ${GREYNOISE_API_KEY}`. Options placed anywhere else in the command are not passed to the installer.

**Common options**

* `-o`, `--sensor-name <name>` - The name shown for this sensor in the GreyNoise Visualizer. Put quotes around names that contain spaces, but don't use quotation marks (`"` or `'`) in the name itself, because they can cause the installation to fail.
* `-s`, `--ssh-port <port>` - The port you will use to SSH into the sensor after installation. If you leave this out, a random port is chosen for you. Your current SSH session will be disconnected at the end of the installation unless you choose the port you are already connected on. You can find the sensor's SSH port in the Visualizer at any time.
* `-p`, `--public-ip <addresses>` - The public IP addresses the sensor should listen on. Use this when the sensor has more than one public IP address, or when its public IP address can't be detected automatically. Separate multiple entries with commas. Each entry can be a single address (`203.0.113.10`) or a range of addresses (`203.0.113.32/29`). A range can contain up to 1,024 addresses, and its first and last addresses are not used. All of the addresses must reach this machine. If you leave this out, the sensor listens on the single public IP address it detects. See [Public IP Considerations](https://docs.greynoise.io/docs/sensor-installation-guide#public-ip-considerations) for more detail.

**Advanced network options**

These settings are detected automatically. Only use them if the installation fails or the sensor doesn't receive traffic.

* `-i`, `--internal-ip <address>` - The machine's own private (internal) IP address. Set this if the machine has several network addresses and the wrong one is detected. If you list more than one address, you must also use `-a`.
* `-a`, `--snat <address>` - The single internal IP address the sensor should use for its outbound traffic. Required if you list more than one address with `-i`. Enter a plain address without a range, for example `10.0.0.5`, not `10.0.0.5/32`.
* `-n`, `--interface <name>` - The name of the network interface that connects this machine to the internet, for example `eth0`.
* `-g`, `--gateway <address>` - The router (gateway) address the sensor sends its responses through. Only set this if the sensor's responses must leave by a different router than the machine normally uses to reach the internet.
* `-t`, `--dnat` - Tells the sensor that a firewall or router forwards its public IP address to a different, private address on this machine. This is turned on automatically when the machine's address is in a private range (10.x.x.x, 172.16.x.x to 172.31.x.x, or 192.168.x.x), so you rarely need it.
* `-m`, `--mtu <size>` - The largest packet size the machine's network connection should use. Leave this unset unless your hosting provider requires a specific value. If unset, the machine's current setting is not changed.

### Post Installation

Once you have successfully installed a sensor, the sensor will be running the GreyNoise `Default` profile, which is not listening on any ports but will respond to pings and send transport protocol rejection packets. When you are ready for the sensor to start collecting data, ensure that you select one of the device profiles and apply it to the sensor, allowing it to capture additional traffic and scanning attempts.

## Troubleshooting

For any issues, please feel free to contact <support@greynoise.io> for assistance.

> ❗ Check Your Firewall Settings
>
> The firewall on your server must permit traffic on the ports that the profile requires to be open. We recommend allowing all ports for maximum visibility into activity on your sensor.

### FAQ

* **Why am I unable to SSH into my sensor host after I installed the GreyNoise sensor?**
  * Once the GreyNoise sensor is installed, your SSH port will be changed. The port is updated when the script runs, and the new port is provided as an output to the script. If you missed it during the installation, you can find it on the Sensor Details Page for your sensor.
* **Why does my sensor show the wrong IP address in the Visualizer?**
  * On some hosts, the public IP address can not be automatically detected during installation. If this is the case for your host, please use either the `-i` or `-p` parameter with the sensor installation script and redo the installation.
    * See [Sensor Installation > Customized Installation Using Optional Parameters](https://docs.greynoise.io/docs/sensor-installation-guide#customized-installation-using-optional-parameters) for more information.