Deploying on Google Cloud Platform (GCP)

To deploy Wallarm Node on Google Cloud Platform:

  1. Log in to your Google Cloud Platform account.
  2. Launch a Wallarm Node instance
  3. Connect to the Wallarm Node instance console for the further configuration
  4. Register Wallarm Node in Wallarm Cloud
  5. Set up filtering and proxying rules

1. Log in to your Google Cloud Platform account

Sign in at console.cloud.google.com.

2. Launch a Wallarm Node instance

Launch your Wallarm Node instance using this link and click LAUNCH ON COMPUTER ENGINE.

The GCP instance launches with a pre-installed Wallarm Node.

3. Connect to the Wallarm Node instance console for the further configuration

See Google Cloud Platform: Connecting to Instances for more details.

4. Register Wallarm Node in Wallarm Cloud

The filter node interacts with the Wallarm cloud located on a remote server.

The addnode script connects the filter node to the Wallarm cloud.

  1. Run the script addnode: /usr/share/wallarm-common/addnode

  2. Enter the login and password. This is the same login and password that you use to access Wallarm console at https://my.wallarm.com. The profile must have the Administrator role and 2FA should be disabled. If the profile has the Analyst role or has 2FA enabled, the script will error out.

API Access

To interact with the Wallarm cloud, the filter node must have access to https://api.wallarm.com:444. Ensure the access is not blocked by a firewall.

5. Set up filtering and proxying rules

Uncomment the wallarm_mode string in the file /etc/nginx-wallarm/conf.d/wallarm.conf.

To uncomment, remove the # character at the beginning of the string.

By default, the directive is set to offwallarm_mode off.

Set it to monitoring.

File contents example:

#
# Wallarm module specific parameters
#

wallarm_mode monitoring;
# wallarm_mode_allow_override on;

Additional step. Allocate more memory for the Wallarm Node

Wallarm Node uses Tarantool, open-source in-memory database, to calculate traffic metrics required for automated adjusting of security rules.

By default, the amount of RAM allocated to Tarantool is 75% of the total instance memory.

You can change the amount of RAM allocated to in-memory database:

  1. Open the Tarantool configuration file:

    vi /etc/default/wallarm-tarantool

  2. Set the amount of allocated RAM (in GB) using the SLAB_ALLOC_ARENA variable. For example, to set 24 GB:

    SLAB_ALLOC_ARENA=24

  3. To apply changes, restart the Tarantool daemon:

    systemctl restart wallarm-tarantool

The installation is complete

Check that the filter node runs and filters the traffic. See Check the filter node operation.

results matching ""

    No results matching ""