# Getting Started with Firewall Pro

This page will help you get started protecting your package downloads with Firewall Pro in a few easy steps:

1. Sign up for Firewall Pro at [https://firewall.sonatype.app](https://firewall.sonatype.app/) and choose a subscription plan.
2. Create an API token.
3. Configure your repository manager proxy repositories to route traffic through Firewall Pro.

## Supported Package Ecosystems

Firewall Pro protects packages fetched from the following official public registries:

- npm Registry (registry.npmjs.org)
- Python Package Index / PyPI (pypi.org)
- NuGet Gallery (nuget.org)
- Maven Central (repo1.maven.org)

Private registries, mirrors, and alternative package sources are not covered by Firewall Pro. Only packages fetched through the official upstream registries listed above are evaluated and protected.

## Step 1: Sign Up for Firewall Pro

To sign up for Firewall Pro, navigate to [https://firewall.sonatype.app](https://firewall.sonatype.app/) and proceed through the login / sign-up process, entering required information in the form.

After signing in, you are redirected to the Firewall Pro dashboard. If you have not yet selected a subscription plan, the dashboard displays an option to choose a plan. You will not be able to create an API token or configure protection until you have an active subscription.

Select _Purchase Firewall Pro_ to choose and purchase your subscription plan.

## Step 2: Create an API Token

API tokens are credentials that authenticate your repository manager's connection to Firewall Pro. Every request that Firewall Pro receives must include a valid API token.

Firewall Pro supports two authentication methods; both use your API token as the credential:

- **Bearer token** – Use the API token directly as a Bearer token in the HTTP Authorization header.
- **Basic Auth** – Some integrations require HTTP Basic Auth. In this case, you will use the following values:

- **Username** – Use your Firewall Pro organization username. This is available under _Settings_ → _API Tokens_ → _View Username_.
  - **Password** – Use your API token.

To generate an API token, take the following steps:

**Tip**  
Make sure to copy this token before closing the modal window as the value cannot be retrieved later.

1. Navigate to _Settings_ → _API Tokens_. Here you will see a list of existing API tokens.

2. Select _Generate New Token_.

3. Input a unique _Token Name_.
4. Select a _Token Expiration_ period from the drop-down menu; this can be _30 days_, _60 days_, _90 days_, or _Never_.
5. Select _Generate Token_.
6. Copy your newly generated token to your clipboard using the _Copy Token to Clipboard_ button.

Your new token will now be listed in the _API Tokens_ tab alongside other existing tokens. You can select the trashcan icon to delete a token you no longer need.

## Step 3: Configure Your Repository Manager to Use Firewall Pro

Once you have generated an API token to use in your repository manager, you must configure your proxy repositories to route package requests through Firewall Pro. To do this, you will need both your API token and a Firewall Pro proxy URL for each supported package ecosystem.

You can find these Firewall Pro proxy URLs under _Settings_ → _Remote Proxy URLs_. There you will find a dedicated URL for each ecosystem. These URLs follow the pattern described in the table below:

| Package Ecosystem | Proxy URL |
| --- | --- |
| npm Registry | firewall.sonatype.app/npm/ |
| PyPI | firewall.sonatype.app/pypi/ |
| NuGet Gallery | firewall.sonatype.app/nuget/ |
| Maven Central | firewall.sonatype.app/mvn/ |

**Note**  
Firewall Pro only covers packages fetched from the official upstream public registries listed in the [Supported Package Ecosystems section](https://help.sonatype.com/en/getting-started-with-firewall-pro.html#supported-package-ecosystems "Supported Package Ecosystems").

If a proxy repository was previously pointing to a different registry, mirror, or private source, those packages are not protected by Firewall Pro.

Use a separate proxy repository for any sources you still need to access.

Now that you have both your API token and your proxy URLs, take the following steps for each supported ecosystem:

### Steps for Formats Supporting Bearer Tokens

1. In your repository manager, locate your existing proxy repository for that ecosystem.
2. Replace the remote storage URL with the Firewall Pro proxy URL for that ecosystem.
3. Add your API token as the authentication credential.
4. Save and test the connection.

### Steps for Formats Requiring Basic Auth

1. In your repository manager, locate your existing proxy repository for that ecosystem.
2. Locate the authentication section for that repository and ensure it is set to _Basic Auth_ or equivalent.
3. In the _Username_ field, provide your Firewall Pro organization username. This is available in Firewall Pro under _Settings_ → _API Tokens_ → _View Username_.
4. In the _Password_ field, paste your Firewall Pro API token.
5. Save and test the connection.
