Amazon Web Services VPC: Elastic IP
Amazon AWS Installation Overview
This section describes how to set up an Amazon AWS Virtual Private Cloud (VPC) in high availability (HA) mode to work with SoftNAS SNAP HA™. Using Elastic IPs is the traditional setup for High Availability EC2 nodes. With SoftNAS Storage Center, use of Elastic IPs are no longer a requirement. Because use of Elastic IPs require a public facing IP, providing a potential security risk, a Virtual IP setup is SoftNAS' recommendation. Both setups are fully supported by SoftNAS.
The following is required:
-
-
-
Configure the routing tables.
-
Launch an Instance of
SoftNAS Cloud® into the VPC.
-
Create and Associate the Required Elastic IPs.
-
Set up
SoftNAS Cloud® for HA.
Note: The HA IAM Role is caps sensitive, and must be named SoftNAS_HA_IAM.
Secure Administrative Access in VPC
With Elastic IPs, direct internet access to the SoftNAS instance is possible. However, this is not recommended for obvious security reasons.
There are multiple ways to configure secure administrative access to the SoftNAS SNAP HA™ storage controllers:
1) VPN - this is the most secure and recommended best practice for limiting access to the private IPs of each SoftNAS Cloud® controller. In this case, use DNS to assign a common name to each controller (e.g., "nas01.localdomain.com", "nas02.localdomain.com"), making routing to each SoftNAS Cloud® controller convenient for administrators
2) Admin Desktop - an even more secure approach is to combine VPN access with an Administrator's desktop, typically running Windows and accessed via RDP. This secure admin desktop adds another layer of authentication, namely Active Directory (or local account) authentication. Once an administrator has gained secure, encrypted access to the Admin Desktop, she opens up a web browser to connect to the SoftNAS StorageCenter™ controller.
3) Direct Internet Access - the least secure, yet simplest form of providing administrators with access to SoftNAS StorageCenter™ is to assign two additional Elastic IP addresses, one per SoftNAS Cloud® controller (see Figure 3 below). Of course, a corresponding security group, locked down to restrict the IP addresses allowed access to the controllers is necessary to properly secure this configuration. While not recommended for production systems, this configuration is most commonly seen during evaluation and for development systems, where full VPC deployment has not yet taken place.
Associating the Required Elastic IPs to the SoftNAS Cloud® Instances
If setting up SoftNAS SNAP HA™ with Elastic IPs, three elastic IPs will be required. One IP is associated to each VPC instance, and a third IP is associated to the VIP interface.
Creating the Elastic IPs
Create three Elastic IPs for use with SoftNAS Cloud®.
1. From the EC2 Services Dashboard, click on Elastic IPs.
2. Click on Allocate New Address.
3. For EIP used in, select "VPC."
4. Click Yes, Allocate.
Repeat the procedure to create three new elastic IPs for the VPC.
Associating the Elastic IPs to the SoftNAS Cloud® Instances.
To associate the Elastic IPs to the instances, take note of the Interface ID for the SoftNAS Cloud® instance. This can then be used to associate an Elastic IP.
1. From the EC2 Services Dashboard, click on Instances.
2. Select one of the SoftNAS Cloud® instances.
3. Scroll down to the Network interfaces settings.
4. Click on "eth0" and take note of the Interface ID.
5. Click on Elastic IPs.
6. Select the Elastic IP of choice.
7. Click on Associate Address.
8. From the Associate Address window, select the corresponding Network Interface from the dropdown.
9. Click on Associate.
The Elastic IP is associated with the SoftNAS Cloud® instance.
Repeat the above procedure to associate another Elastic IP to the other SoftNAS Cloud® instance.
Setting Up for SNAP HA™
To set up SoftNAS for SNAP HA™, log into the SoftNAS Cloud® instances and access storage via the SoftNAS StorageCenter™ interface. Via the SoftNAS StorageCenter™ interface, set up SoftNAS Cloud® with the required Disk Devices, Storage Pools, and Volumes. Once this is complete for both instances, set up replication and SoftNAS SNAP HA™.
Log In to SoftNAS StorageCenter™
Logging in to SoftNAS StorageCenter™ requires the public IP of the SoftNAS Cloud® instance, as well as the Instance ID (default password).
1. Obtain the public IP of the SoftNAS Cloud® instance, as listed on the Instances screen.
2. Select the desired SoftNAS Cloud® instance.
3. Copy the Instance ID.
4. Navigate a local web browser to https://[Public IP of the instance].
5. When prompted, use "softnas" as the username and the Instance ID (e.g., "i-99abc991") as the password. Change the password when convenient as dictated by security best practices.
The SoftNAS StorageCenter™ interface will load.
Setting Up SoftNAS Cloud®
After accessing the SoftNAS StorageCenter™ interface, set up the Disk Devices, Storage Pools, and Volumes that will ultimately be required for SNAP HA™.
Note: When setting up storage pools for replication, they have to have the same name or replication will not work properly. Also, create a volume on the source side node.
Setting Up Replication and SNAP HA™
Set up Replication
1. Log on to a SoftNAS Cloud® instance and select the SnapReplicate / SNAP HA™ menu in the file tree.
2. Click Add Replication.
3. Enter the private IP for Ethernet 0 of the secondary node to be replicated to from AWS setup.
4. Provide this private IP address when prompted by the SoftNAS StorageCenter wizard, as seen below.
4. Provide the SoftNAS Cloud® instance credentials.
5. Click Finish.
This will establish replication.
Set Up HA
1. From the SoftNAS SnapReplicate™ panel, click on Add SNAP HA and click Next.
2. Select Elastic IP from High Availability type when the option is presented.
3. Add the Elastic IP which was previously configured in AWS. This is the Elastic IP that we previously created, but did not assign to a VPC.
5. Click Finish.
At this point, SoftNAS Cloud® will do the heavy lifting required to establish HA without the need for any user intervention. This process may take several minutes. After completion, a high availability SoftNAS Cloud® pair has been successfully set up across availability zones in AWS.