SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide...

31
SonicWall® Web Application Firewall 2.2 AWS Deployment Guide

Transcript of SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide...

Page 1: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

SonicWall® Web Application Firewall 2.2AWS Deployment Guide

Page 2: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Contents

1

2

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Supported AWS Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

WAF Licensing Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Free Trial Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Licensing and Registration Work Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

WAF 2.0 to 2.2 License Migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Internet Access Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Creating a Key Pair in AWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Creating a MySonicWall Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Installing the WAF Virtual Appliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Launching SonicWall WAF Using 1-Click . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Using Manual Launch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Configuring the WAF Virtual Appliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Powering the Virtual Appliance On or Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Connecting to the Web Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Connecting to the Command Line Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Using the Command Line Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Setup Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Reboot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Restart WAF Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Save TSR to Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Display EUPA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Logout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Registering Your WAF Virtual Appliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

About WAF Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Registering WAF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Using the 30-day Trial Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Deployment Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Registering the 30-day Trial Virtual Appliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Upgrading Your WAF Virtual Appliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Exporting a Copy of Your Configuration Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Backing up Settings Automatically . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Automatic Software Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Obtaining the Latest Upgrade Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Uploading a New WAF Image Manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

SonicWall Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

About This Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Contents

Page 3: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Overview

1

3

Overview

Welcome to the SonicWall® Web Application Firewall AWS Deployment Guide. This Deployment Guide contains installation procedures and configuration guidelines for deploying the SonicWall WAF Amazon Machine Image (AMI) in your Amazon Web Service (AWS) cloud network. The WAF includes a software appliance, which has been pre-installed and pre-configured for AWS environments, and allows for the secure and easy development of WAF AMI solutions within a cloud environment.

SonicWall WAF provides the following benefits:

• Security

• WAF enforces a defense-in-depth strategy to protect a suite of backend web applications, significantly reducing the development cost and effort involved in protecting individual web applications.

• WAF provides an optimized, non-tamperable architecture.

• Scalability and Redundancy

• Multiple virtual machines can be deployed as a single system, enabling specialization, scalability, and redundancy.

• Operational Ease

• You can virtualize your entire environment and deploy multiple machines within a single server or across multiple servers.

• Product Versatility

• WAF is compatible with other SonicWall platforms as a stand-alone (All-in-One) unit.

The award-winning SonicWall Web Application Firewall service enforces defense-in-depth strategy to protect your web applications running in AWS from most common threats using a high performance real-time intrusion scanning engine. It offers businesses a complete, affordable, out-of-box compliance solution for web applications that is easy to manage and deploy.

WAF supports OWASP Top Ten and PCI DSS compliance, providing protection against malicious injection and cross-site scripting attacks, credit card and Social Security Number theft, cookie tampering and cross-site request forgery. Dynamic signature updates and Application Profiling that leverages an active learning algorithm protect against known and zero-day vulnerabilities. Virtual Patching using Custom Rules allows customers to instantly address a vulnerability and avoid attacks that happen while waiting for a security hotfix. SonicWall WAF supports IP Reputation services and Rate Limiting features to block automated and brute-force attacks. Stacked authentication including 2-factor authentication, one-time passwords and SSL client certificate authentication combined with access policies provides granular access control to the web applications.

Highlights:

• Secures web applications against advanced web attacks including OWASP Top Ten

• Layer 7 Load Balancing and Health Monitoring features provides accelerated application delivery and high availability of your applications

• Denial of service (DoS) protection, Rate Limiting and Botnet protection with Remediation blocks automated brute-force attacks

Page 4: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

2

Before You Begin

This section specifies the supported AWS instances, computing requirements for the installation, and information about MySonicWall.

Topics:

• Supported AWS Platforms on page 4

• WAF Licensing Requirements on page 4

• Internet Access Requirements on page 8

• Creating a Key Pair in AWS on page 8

• Creating a MySonicWall Account on page 9

Supported AWS PlatformsThe elements of basic AWS infrastructure must be implemented prior to deploying the WAF. The following AWS instances are recommended:

• c5.large

• c5.xlarge

• c5.2xlarge

• c5.4xlarge

WAF Licensing RequirementsBeginning in version 2.2, SonicWall WAF uses Web App based licensing to increase flexibility with sizing and deployment.

Web App based licensing uses a per-website licensing model. This licensing model provides granularity so that you only need to purchase what you need depending on the websites you want to protect.

Under the Web App based licensing model, the WAF appliance synchronizes with the SonicWall backend on an hourly basis and downloads the number of licensed Web Apps of each size. WAF restricts the overall number of Web Apps created on the appliance to the total number of licensed Web Apps across all sizes. Each Web App size is mapped to a capacity limit on the appliance. See the WAF Licensing Structure table, which shows how a website type maps to a capacity limit.

WAF additionally monitors and ensures that the total data transacted does not exceed the total of capacity limits for all licensed Web Apps. WAF does not restrict the data individually for each Web App. Therefore, Web Apps can share this capacity limit.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin4

Page 5: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

WAF logs how much data has been transacted every day, displaying the daily traffic on the Dashboard > Monitoring page for transparency.

When the rolling 30-day data used exceeds the 30-day limit, the administrator is warned, multiple times if necessary. If data usage exceeds the 30-day limit for 5 consecutive days, Web Security Services are disabled. Web Security is restored as soon as the 30-day rolling data usage is back within limits. Logs and alerts are available to document licensing violations and WAF service deactivation and activation.

The Web App based WAF licensing structure replaces the former model-based WAF tiers and compute capacity based enforcement in WAF 2.0. The new structure is based on the capacity needed by the protected Web Apps or websites. Five capacity based website types are defined: PRO, SMALL, MEDIUM, LARGE, and ENTERPRISE as shown in the WAF Licensing Structure table.

Note the following for deployment of multiple WAF virtual appliances:

• If you wish to deploy more than one WAF virtual appliance, you need to determine how to split your total licensed capacity across the appliances.

• Capacity configured on a WAF virtual appliance is considered unique. To configure load balancing or high availability with multiple WAF appliances, you need to purchase multiples of the desired capacity.

• ENTERPRISE web app types are only supported from WAF 2.2.0.3.

• Co-existence of ENTERPRISE web app types with any other web app types (PRO, SMALL, MEDIUM or LARGE) is not supported on the same WAF appliance. If such mixed licensing is desired, ENTERPRISE licenses must be applied to a separate WAF appliance.

NOTE: Application delivery features continue to function even under license violation, in order to reduce disruption.

WAF Licensing Structure

Website Type Capacity

PRO 10 GB per month

SMALL 50 GB per month

MEDIUM 200 GB per month

LARGE 500 GB per month

ENTERPRISE Unlimited GB per month

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin5

Page 6: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

The following figures illustrate different licensing scenarios:

• Example with a Single WAF Virtual Appliance

• Example with Multiple WAF Virtual Appliances Using Load Distribution

• Example with Multiple WAF Virtual Appliances Using High Availability

Example with a Single WAF Virtual Appliance

Example with Multiple WAF Virtual Appliances Using Load Distribution

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin6

Page 7: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Example with Multiple WAF Virtual Appliances Using High Availability

Free Trial LicensingWhen activating the WAF appliance as part of the free trial work flow, the free trial instance is activated to protect 1 PRO website, 1 SMALL website, 1 MEDIUM website, and 1 LARGE website for 30 days.

Licensing and Registration Work Flow

The work flow for WAF 2.2 licensing and registration is:

1 Purchase WAF Web App based licenses. These are available in 1-year or 3-year durations on MySonicWall at https://www.mysonicwall.com/.

2 Create WAF Virtual Appliance product on MySonicWall.

3 Install WAF Virtual Appliance on AWS.

4 Register WAF Virtual Appliance with serial number and authentication code during virtual appliance initialization.

5 Apply license keys for WAF.

Capture ATP and Geo-IP/Botnet services are activated automatically for the same term as the WAF service licenses.

WAF 2.0 to 2.2 License MigrationIf you have a WAF 2.0 Virtual Appliance licensed using the previous tiered licensing, your license will be migrated as shown in the WAF 2.0 to 2.2 SKU Migration table. The existing license durations are retained when migrating the SKUs.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin7

Page 8: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Internet Access RequirementsInternet access is required for communication between the SonicWall WAF appliance and the SonicWall License Manager. An outbound rule of the WAF's Security Group should allow HTTPS access to the SonicWall License Manager.

SonicWall WAF should be able to reach the following hosts for proper functioning:

• licensemanager.sonicwall.com

• lm2.sonicwall.com

• soniclicense.global.sonicwall.com

• smagbdata.global.sonicwall.com

• geoipdata.global.sonicwall.com

• sigserver.global.sonicwall.com

• sonicsandbox.global.sonicwall.com

Creating a Key Pair in AWSFirst-time users might see a notification to “Please select a key pair” when preparing to launch SonicWall Web Application Firewall in the Amazon EC2 console:

A key pair provides encrypted login information that allows you to securely access your WAF instance. You need to create a key pair and store the file containing the private key in a safe place on your management computer.

To create a key pair:

1 Locate the Key Pair item in the page and click on it.

WAF 2.0 to 2.2 SKU Migration

Model Purchased (2.0) Tiered Service Licensed (2.0) New License Entitlement (2.2)

WAF 200 Tier-1 4 PRO, 3 SMALL, 1 MEDIUM

WAF 400 Tier-2 7 PRO, 5 SMALL, 2 MEDIUM

WAF 800 Tier-3 10 PRO, 6 SMALL, 3 MEDIUM, 1 LARGE

WAF 1600 Tier-4 20 PRO, 12 SMALL, 5 MEDIUM, 3 LARGE

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin8

Page 9: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

2 Click the link in the instructions to go to the EC2 Console.

3 Make sure the correct region is selected, and then click Create Key Pair.

4 Type in a descriptive name for the key pair and then click Create.

5 Click Download Key Pair to download the key pair and store it safely. The downloaded PEM file must be used to connect over SSH. Save the .pem file to a safe location on your computer.

For more information about key pairs, see: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html

Creating a MySonicWall AccountA MySonicWall account is required for product registration. If you already have an account, product registration is described in Registering Your WAF Virtual Appliance on page 24.

To create a MySonicWall account:

1 In your browser, navigate to https://www.mysonicwall.com.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin9

Page 10: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

2 In the login screen, click SIGN UP.

3 Enter your email address and create a password, then click CONTINUE.

4 In the next screens, enter information about your company and yourself.

5 Click Submit to create your account.

NOTE: MySonicWall registration information is not sold or shared with any other company.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Before You Begin10

Page 11: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

3

Installing the WAF Virtual Appliance

This section explains how to install the SonicWall WAF virtual appliance by launching a WAF AMI in your AWS environment.

Topics:

• Launching SonicWall WAF Using 1-Click on page 11

• Using Manual Launch on page 14

Launching SonicWall WAF Using 1-ClickThe WAF Virtual Appliance is installed by launching the SonicWall Web Application Firewall (WAF) - BYOL instance from the AWS Marketplace.

To launch SonicWall WAF with 1-Click:

1 In a browser, access the SonicWall WAF page at:

https://aws.amazon.com/marketplace/pp/B0788NT8B6

2 Click Continue to Subscribe.

3 In the “Thank you” page, click Return to Launch Page.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Installing the WAF Virtual Appliance11

Page 12: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

The SonicWall Web Application Firewall launch page displays.

4 Optionally click on Region and change it to your local region (matching your key pair). SonicWall recommends using the other default settings defined for 1-Click Launch.

5 Click Launch with 1-click.

NOTE: If you see a notification about selecting a key pair, create a key pair and then return to this page and refresh the browser. See Creating a Key Pair in AWS on page 8 for more information.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Installing the WAF Virtual Appliance12

Page 13: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Using Manual LaunchIf you don’t want to use 1-Click Launch, you can use Manual Launch to configure settings on each page of the installation process.

To launch SonicWall WAF with Manual Launch:

1 Click Manual Launch on the AWS page at https://aws.amazon.com/marketplace/pp/B0788NT8B6.

2 Under Version, select the WAF 2.2 version.

3 Under Launch, locate the Region you want and then click the Launch with EC2 Console button next to it.

4 In the Step 2 screen, select the instance type you want.

5 Click Next: Configure Instance Details.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Installing the WAF Virtual Appliance13

Page 14: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

6 In the Step 3 screen, configure the instance settings.

7 Click Next: Add Storage.

8 In the Step 4 screen, configure the hard disk size.

9 Click Next: Add Tags.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Installing the WAF Virtual Appliance14

Page 15: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

10 In the Step 5 screen, if tags are desired, click Add Tag and type in the key-value pair(s).

11 Click Next: Configure Security Group.

12 In the Step 6 screen, configure a Security Group for the WAF. If a Security Group was already created for SonicWall WAF before, you can assign it here. If not, create the rules as shown in the screenshot below.

13 Click Review and Launch.

14 Verify the instance details shown in the next screen. You can make changes to any of the preceding configurations by clicking the Edit link next to each heading.

15 When ready, click Launch to assign a key pair to your instance.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Installing the WAF Virtual Appliance15

Page 16: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

16 Select an existing key pair or create a new key pair. If you need to create a new key pair, see Creating a Key Pair in AWS on page 8 for information.

17 Click Launch Instances to launch SonicWall WAF.

You are now ready to begin using your WAF virtual appliance. See:

• Configuring the WAF Virtual Appliance on page 18

• Registering Your WAF Virtual Appliance on page 24

• Using the 30-day Trial Version on page 25

• Upgrading Your WAF Virtual Appliance on page 27

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Installing the WAF Virtual Appliance16

Page 17: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

4

Configuring the WAF Virtual Appliance

This section describes how to power on the WAF virtual appliance and configure basic settings, including virtual hardware settings and networking settings.

Topics:

• Powering the Virtual Appliance On or Off on page 18

• Connecting to the Web Interface on page 19

• Connecting to the Command Line Interface on page 20

• Using the Command Line Interface on page 21

Powering the Virtual Appliance On or Off

To Start, Stop, Reboot, or Terminate the instance:

1 In the EC2 console, click Instances in the AWS left pane. All your Amazon machine instances are displayed, along with their EC2 Instance IDs.

2 Right-click on the WAF AMI instance. In the right-click menu, click on Instance State and select one of:

• Start

• Stop

• Reboot

• Terminate

NOTE: The Instance ID is the default password for the administrator account.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Configuring the WAF Virtual Appliance18

Page 18: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

More information on how to start or stop an instance is available on AWS website:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html

Connecting to the Web InterfaceThe WAF virtual appliance always starts with the private IP address automatically assigned by EC2 using DHCP addressing. EC2 also automatically assigns a public IP address to allow access from the internet.

To access the WAF management web interface over HTTPS:

1 Launch a browser and navigate to the WAF public IP address on port 8443.

https://<WAF Public IP>:8443/

2 On the web interface login page, type in the default credentials and then click Login.

The default credentials are:

• Default user name = admin

• Default password = <EC2 Instance ID>

NOTE: The public IP address assigned by EC2 can change across reboots. To preserve the same public IP address, configure an Elastic IP for the instance. More information on Elastic IP addresses is available here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

NOTE: The virtual appliance web interface listens on HTTPS at port 8443.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Configuring the WAF Virtual Appliance19

Page 19: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

The WAF virtual appliance management interface is displayed.

3 The System > Status page is displayed, and you can register the WAF and begin management and configuration.

See the SonicWall Web Application Firewall Administration Guide for configuration information.

Connecting to the Command Line InterfaceThe Command Line Interface (CLI) is a text-only mechanism for interacting with the WAF virtual appliance by typing commands to perform specific tasks. The CLI can be launched over SSH.

To connect to the instance over SSH:

1 Select the WAF instance on the EC2 console.

2 Click Actions and then click Connect to see information on how to connect.

After the WAF Virtual Appliance software has fully booted, a login prompt is displayed.

3 Log in using the default administrator credentials for the admin account configured on the appliance.:

• Default user name = admin

• Default password = <EC2 Instance ID>

If an incorrect password is entered, the login prompt is displayed again. If the correct password is entered, the CLI is launched.

NOTE: Occasionally, using the Instance ID can cause a login failure if there are any network issues. In that case, password will be the default password for the admin account.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Configuring the WAF Virtual Appliance20

Page 20: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

4 The first-time login will require the admin to review the End User Product Agreement (EUPA) and accept it before proceeding. Press <SPACE> to scroll down.

Basic system information and network settings are displayed along with the main menu.

Continue to Using the Command Line Interface on page 21.

Using the Command Line InterfaceThe CLI main menu has six selections:

• Setup Wizard on page 22

• Reboot on page 22

• Restart WAF Services on page 23

• Save TSR to Flash on page 23

• Display EUPA on page 23

• Logout on page 23

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Configuring the WAF Virtual Appliance21

Page 21: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Setup WizardThis option launches a simple wizard to change the basic network settings, including the Auto-provision setting, X0 IP Address, X0 subnet mask, default gateway, primary and secondary DNS, and the hostname. The following CLI output illustrates an example where each field is changed:

For AWS, Auto-provision is set to Enabled by default. The network settings are automatically configured. Disable Auto-provision if you want to manually configure the network settings.

If a field is not filled out, the prior value is retained, allowing you to change only a single field. After each field has been prompted, the new network settings are shown and a confirmation message allows you to review and verify the changes before applying them. The following shows the result when you save the changes:

After saving the changes, press Enter to return to the original display of the System Information and Network Settings. Verify that the changes have taken effect.

If no changes are saved, a message displays. Pressing Enter returns to the initial display of the System Information and Network settings.

RebootSelecting this option displays a confirmation prompt, and then reboots:

NOTE: When applying settings that change the IP address, there might be a delay of up to five seconds as the interface settings are updated.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Configuring the WAF Virtual Appliance22

Page 22: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Restart WAF ServicesThis option displays a confirmation prompt, and then restarts the web server and the related WAF Services.

Save TSR to FlashSaves the current Technical Support Report to the hard disk on the WAF virtual appliance. This is useful for troubleshooting when the management console is not accessible, for example, in the case of a lockup.

Display EUPADisplays the End User Product Agreement associated with the WAF virtual appliance.

LogoutThe logout option ends the CLI session and returns to the login prompt.

NOTE: The X0 interface is the only interface configurable through the CLI. Currently, configuring any other interfaces using the CLI on a SonicWall WAF virtual appliance is not supported.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Configuring the WAF Virtual Appliance23

Page 23: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Registering Your WAF Virtual Appliance

5

24

Registering Your WAF Virtual Appliance

This section contains information about registering your WAF virtual appliance.

You must purchase a license and register your WAF on MySonicWall before first use. Registration is performed using the WAF web management interface. When registration is completed, WAF is licensed and ready to use. For the 30-Day Trial Virtual Appliance registration process, refer to Using the 30-day Trial Version on page 25.

Topics:

• About WAF Licensing on page 24

• Registering WAF on page 24

About WAF LicensingLicensing is controlled by the SonicWall license manager service, and you can add licenses through your MySonicWall account. Unregistered units must be registered in order to activate additional licensing from MySonicWall.

License status is displayed in the web management interface, in the Licenses & Registration section of the System > Status page. Current usage of Web App licenses and current data usage is displayed under Licenses on the Dashboard > Monitoring page.

Communication with the SonicWall License Manager is necessary while using the WAF virtual appliance, and requires internet access.

See WAF Licensing Requirements on page 4 and Internet Access Requirements on page 8 for more information.

Registering WAF

To register your WAF:

1 Log in to your WAF. The System > Status page displays.

2 Navigate to the System > Licenses page.

3 Click the register link.

4 Enter your MySonicWall account username and password in the appropriate fields. Click Submit.

5 The Administration section displays. Enter the Serial Number, Authentication Code, and Friendly Name for your SonicWall WAF virtual appliance.

6 Click Submit to finish the registration process.

7 You have successfully registered your WAF. Click Continue to view the Manage Licenses screen or continue configuring other settings within the virtual appliance.

Page 24: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

6

Using the 30-day Trial Version

The WAF virtual appliance is offered in a 30-day Trial version. The installation, registration, and functionality of the 30-Day Trial appliance is the same as the full WAF, except for differences noted below in Deployment Considerations. An email is sent from the SonicWall License Manager to warn you when your trial is near its expiration date.

You must install the WAF software before registering for your 30-Day Trial. See Installing the WAF Virtual Appliance on page 11.

To upgrade to the full version:

1 Purchase the full WAF.

2 Export your settings from the 30-day Trial version.

3 Install and register the full WAF.

4 Import your settings.

Topics:

• Deployment Considerations on page 25

• Registering the 30-day Trial Virtual Appliance on page 25

Deployment ConsiderationsThe following is a list of deployment considerations for the 30-day Trial version:

• The WAF is disabled after 30 days.

• Communication with the SonicWall License Manager is required during the entire trial period.

• It is recommended to save a copy of your WAF configuration settings before upgrading to the full version of SonicWall WAF.

• The elements of basic AWS environment must be implemented prior to deploying the WAF.

Registering the 30-day Trial Virtual ApplianceThis section details registration of the SonicWall 30-day Trial virtual appliance.

To register the 30-day Trial:

1 Log in to your WAF.

NOTE: Before starting the registration process, contact SonicWall Sales to obtain your serial number and authorization code.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Using the 30-day Trial Version25

Page 25: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

2 Navigate to the System > Licenses page.

3 Click the Activate, Upgrade, or Renew services link.

4 Enter the Serial Number, Authentication Code, and a Friendly Name.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Using the 30-day Trial Version26

Page 26: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

5 Click SUBMIT.

6 When the System > Software Update page displays, click ACCEPT.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Using the 30-day Trial Version27

Page 27: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

7

Upgrading Your WAF Virtual Appliance

This section describes how to backup your WAF configuration settings and upgrade WAF software to a new version.

Topics:

• Exporting a Copy of Your Configuration Settings on page 27

• Backing up Settings Automatically on page 27

• Automatic Software Downloads on page 28

• Obtaining the Latest Upgrade Image on page 29

• Uploading a New WAF Image Manually on page 29

Exporting a Copy of Your Configuration SettingsBefore beginning the update process, export a copy of your WAF virtual appliance configuration settings to your local machine. The Export Settings feature saves a copy of your current configuration settings on your WAF, protecting all your existing settings in the even that it becomes necessary to return a previous configuration state.

To export a copy of your configuration settings to a file on your local management station:

1 Log into your WAF virtual appliance and navigate to the System > Settings page.

1 Click the Export Settings button.

2 Save the settings file to your local machine.

The default settings file is named wafSettings.zip.

Backing up Settings AutomaticallyOn the System > Settings page, WAF provides three options for automatic or scheduled settings backup:

• Automatically email settings on firmware upgrade

• Automatically send settings to external FTP server on firmware upgrade

• Enable scheduled settings backup

NOTE: To more easily restore settings in the future, rename the .zip file to include the version of the WAF image from which you are exporting the settings.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Upgrading Your WAF Virtual Appliance27

Page 28: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Enabling at least one of these settings backup options is highly recommended.

Automatic Software DownloadsWAF automatically downloads the latest official WAF software versions from the cloud. The new versions are displayed on the System > Software Update page. A description and Release Notes are available for each version. A System Alert is generated when a new software version is downloaded for update to notify the administrator. The new version can be installed by clicking on the Install Now button.

NOTE: It is highly recommended that the administrator reviews the latest software versions and keeps the WAF virtual appliance up-to-date.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Upgrading Your WAF Virtual Appliance28

Page 29: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

Obtaining the Latest Upgrade Image

To manually download a WAF upgrade image file:

1 Go to https://www.mysonicwall.com and log into your MySonicWall account.

2 Copy the WAF upgrade image file to a directory on your management station. This is a file such as:

sw_vm_upgrade_image_2.2.0.0-12waf.sig

Uploading a New WAF Image ManuallyManual software update is supported on the System > Software Update page.

To upload a new WAF virtual appliance image:

1 Download the WAF image file and save it to a location on your local computer, as described in Obtaining the Latest Upgrade Image on page 29.

2 On the System > Software Update page, click the Upload New Software button.

3 Browse to the location where you saved the WAF virtual appliance image file, select the file, and click the ACCEPT button.

The upload process can take up to one minute.

4 When the upload is complete, WAF installs the new image and automatically reboots the virtual appliance.

5 After successfully uploading the image to your WAF, the login screen is displayed. The updated image information is displayed on the System > Status page.

NOTE: WAF virtual appliances do not support downgrading an image and using the configuration settings file from a higher version. To downgrade to a previous version of a WAF image, you must create a new virtual appliance or load a snapshot taken earlier.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

Upgrading Your WAF Virtual Appliance29

Page 30: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

8

SonicWall Support

Technical support is available to customers who have purchased SonicWall products with a valid maintenance contract and to customers who have trial versions.

The Support Portal provides self-help tools you can use to solve problems quickly and independently, 24 hours a day, 365 days a year. To access the Support Portal, go to https://www.sonicwall.com/support.

The Support Portal enables you to:

• View knowledge base articles and technical documentation

• View video tutorials

• Access MySonicWall

• Learn about SonicWall professional services

• Review SonicWall Support services and warranty information

• Register for training and certification

• Request technical support or customer service

To contact SonicWall Support, visit https://www.sonicwall.com/support/contact-support.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

SonicWall Support31

Page 31: SonicWall® Web Application Firewall 2...SonicWall Web Application Firewall 2.2 AWS Deployment Guide Before You Begin 5 WAF logs how much data has been transacted every day, displaying

About This Document

WAF AWS Deployment GuideUpdated - June 2019Software Version - 2.2232-004575-00 Rev C

Copyright © 2019 SonicWall Inc. All rights reserved.

SonicWall is a trademark or registered trademark of SonicWall Inc. and/or its affiliates in the U.S.A. and/or other countries. All other trademarks and registered trademarks are property of their respective owners

The information in this document is provided in connection with SonicWall Inc. and/or its affiliates’ products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of SonicWall products. EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE AGREEMENT FOR THIS PRODUCT, SONICWALL AND/OR ITS AFFILIATES ASSUME NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON- INFRINGEMENT. IN NO EVENT SHALL SONICWALL AND/OR ITS AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF SONICWALL AND/OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SonicWall and/or its affiliates make no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. SonicWall Inc. and/or its affiliates do not make any commitment to update the information contained in this document.

For more information, visit https://www.sonicwall.com/legal.

End User Product Agreement

To view the SonicWall End User Product Agreement, go to: https://www.sonicwall.com/en-us/legal/license-agreements.

Open Source Code

SonicWall is able to provide a machine-readable copy of open source code with restrictive licenses such as GPL, LGPL, AGPL when applicable per license requirements. To obtain a complete machine-readable copy, send your written requests, along with certified check or money order in the amount of US 25.00 payable to “SonicWall Inc.”, to:

General Public License Source Code Request SonicWall Inc. Attn: Jennifer Anderson1033 McCarthy BlvdMilpitas, CA 95035

Legend

WARNING: A WARNING icon indicates a potential for property damage, personal injury, or death.

CAUTION: A CAUTION icon indicates potential damage to hardware or loss of data if instructions are not followed.

IMPORTANT, NOTE, TIP, MOBILE, or VIDEO: An information icon indicates supporting information.

SonicWall Web Application Firewall 2.2 AWS Deployment Guide

SonicWall Support32