Deploy a NetScaler VPX standalone instance on AWS
You can deploy a NetScaler VPX standalone instance on AWS by using the following options:
- AWS web console
- Citrix-authored CloudFormation template
- AWS CLI
This topic describes the procedure for deploying a NetScaler VPX instance on AWS.
Before you start your deployment, read the following topics:
Deploy a NetScaler VPX instance on AWS by using the AWS web console
You can deploy a NetScaler VPX instance on AWS through the AWS web console. The deployment process includes the following steps:
- Create a Key Pair
- Create a Virtual Private Cloud (VPC)
- Add more subnets
- Create security groups and security rules
- Add route tables
- Create an internet gateway
- Create a NetScaler VPX instance
- Create and attach more network interfaces
- Attach elastic IPs to the management NIC
- Connect to the VPX instance
年代tep 1: Create a key pair.
Amazon EC2 uses a key pair to encrypt and decrypt logon information. To log on to your instance, you must create a key pair, specify the name of the key pair when you launch the instance, and provide the private key when you connect to the instance.
When you review and launch an instance by using the AWS Launch Instance wizard, you are prompted to use an existing key pair or create a new key pair. More more information about how to create a key pair, seeAmazon EC2 Key Pairs.
年代tep 2: Create a VPC.
A NetScaler VPC instance is deployed inside an AWS VPC. A VPC allows you to define the virtual network dedicated to your AWS account. For more information about AWS VPC, seeGetting Started With Amazon VPC.
While creating a VPC for your NetScaler VPX instance, keep the following points in mind.
- Use the VPC with a Single Public Subnet Only option to create an AWS VPC in an AWS availability zone.
- Citrix recommends that you create at leastthree subnets, of the following types:
- One subnet for management traffic. You place the management IP(NSIP) on this subnet. By default elastic network interface (ENI) eth0 is used for management IP.
- One or more subnets for client-access (user-to-NetScaler VPX) traffic, through which clients connect to one or more virtual IP (VIP) addresses assigned to NetScaler load balancing virtual servers.
- One or more subnets for the server-access (VPX-to-server) traffic, through which your servers connect to VPX-owned subnet IP (SNIP) addresses. For more information about NetScaler load balancing and virtual servers, virtual IP addresses (VIPs), and subnet IP addresses (SNIPs), see:
- All subnets must be in the same availability zone.
年代tep 3: Add subnets.
When you used the VPC wizard, only one subnet was created. Depending on your requirement, you might want to create more subnets. For more information about how to create more subnets, seeAdding a Subnet to Your VPC.
年代tep 4: Create security groups and security rules.
To control inbound and outbound traffic, create security groups and add rules to the groups. For more information how to create groups and add rules, see年代ecurity Groups for Your VPC.
For NetScaler VPX instances, the EC2 wizard gives default security groups, which are generated by AWS Marketplace and is based on recommended settings by Citrix. However, you can create more security groups based on your requirements.
Note
Port 22, 80, 443 to be opened on the Security group for SSH, HTTP, and HTTPS access respectively.
年代tep 5: Add route tables.
Route table contains a set of rules, called routes, that are used to determine where network traffic is directed. Each subnet in your VPC must be associated with a route table. For more information about how to create a route table, seeRoute Tables.
年代tep 6: Create an internet gateway.
An internet gateway serves two purposes: to provide a target in your VPC route tables for internet-routable traffic, and to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses.
Create an internet gateway for internet traffic. For more information about how to create an Internet Gateway, see the sectionAttaching an Internet Gateway.
年代tep 7: Create a NetScaler VPX instance by using the AWS EC2 service.
To create a NetScaler VPX instance by using the AWS EC2 service, complete the following steps.
From the AWS dashboard, go toCompute > EC2 > Launch Instance > AWS Marketplace.
Before you clickLaunch Instance, ensure your region is correct by checking the note that appears underLaunch Instance.
In the Search AWS Marketplace bar, search with the keyword NetScaler VPX.
年代elect the version you want to deploy and then click年代elect. For the NetScaler VPX version, you have the following options:
- A licensed version
- NetScaler VPX Express appliance (This is a free virtual appliance, which is available from NetScaler 12.0 56.20.)
- Bring your own device
The Launch Instance wizard starts. Follow the wizard to create an instance. The wizard prompts you to:
- Choose Instance Type
- Configure Instance
- Add Storage
- 添加标签
- Configure Security Group
- Review
年代tep 8: Create and attach more network interfaces.
Create two more network interfaces for VIP and SNIP. For more information about how to create more network interfaces, see theCreating a Network Interfacesection.
After you’ve created the network interfaces, you must attach them to the VPX instance. Before attaching the interface, shut down the VPX instance, attach the interface, and power on the instance. For more information about how to attach network interfaces, see theAttaching a Network Interface When Launching an Instancesection.
年代tep 9: Allocate and associate elastic IPs.
If you assign a public IP address to an EC2 instance, it remains assigned only until the instance is stopped. After that, the address is released back to the pool. When you restart the instance, a new public IP address is assigned.
In contrast, an elastic IP (EIP) address remains assigned until the address is disassociated from an instance.
Allocate and associate an elastic IP for the management NIC. For more information about how to allocate and associate elastic IP addresses, see these topics:
These steps complete the procedure to create a NetScaler VPX instance on AWS. It can take a few minutes for the instance to be ready. Check that your instance has passed its status checks. You can view this information in the年代tatus Checkscolumn on the Instances page.
年代tep 10: Connect to the VPX instance.
After you’ve created the VPX instance, you connect the instance by using the GUI and an SSH client.
- GUI
The following are the default administrator credentials to access a NetScaler VPX instance
User name:nsroot
密码:ns根acc的默认密码ount is set to the AWS instance-ID of the NetScaler VPX instance. On your first logon, you are prompted to change the password for security reasons. After changing the password, you must save the configuration. If the configuration is not saved and the instance restarts, you must log on with the default password. Change the password again at the prompt.
- 年代年代H client
From the AWS management console, select the NetScaler VPX instance and clickConnect. Follow the instructions given on theConnect to Your Instancepage.
For more information about how to deploy a NetScaler VPX standalone instance on AWS by using the AWS web console, see:
- 年代cenario: standalone instance
- How to configure a NetScaler VPX instance on AWS by using Citrix CloudFormation template
配置一个网caler VPX instance by using the Citrix CloudFormation template
You can use the Citrix-provided CloudFormation template to automate VPX instance launch. The template provides functionality to launch a single NetScaler VPX instance, or to create a high availability environment with a pair of NetScaler VPX instances.
You can launch the template from AWS Marketplace or GitHub.
The CloudFormation template requires an existing VPC environment, and it launches a VPX instance with three elastic network interfaces (ENIs). Before you start the CloudFormation template, ensure that you complete the following requirements:
- An AWS virtual private cloud (VPC)
- Three subnets within the VPC: one for management, one for client traffic, and one for back-end servers
- An EC2 key pair to enable SSH access to the instance
- A security group with UDP 3003, TCP 3009–3010, HTTP, SSH ports open
年代ee the “Deploy a NetScaler VPX Instance on AWS by Using the AWS Web Console” section or AWS documentation for more information about how to complete the prerequisites.
Watch thisvideoto learn about how to configure and launch a NetScaler VPX standalone instance by using the Citrix CloudFormation template available in the AWS Marketplace.
Further, you configure and launch a NetScaler VPX Express standalone instance by using the Citrix CloudFormation template available in GitHub:
https://github.com/citrix/citrix-adc-aws-cloudformation/tree/master/templates/standalone/
An IAM role is not mandatory for a standalone deployment. However, Citrix recommends that you create and attach an IAM role with the required privileges to the instance, for future need. The IAM role ensures that the standalone instance is easily converted to a high availability node with SR-IOV, when required.
For more information about the required privileges, seeConfiguring NetScaler VPX instances to Use SR-IOV Network Interface.
Note If you deploy a NetScaler VPX instance on AWS by using the AWS web console, the CloudWatch service is enabled by default. If you deploy a NetScaler VPX instance by using the Citrix CloudFormation template, the default option is “Yes.” If you want to disable the CloudWatch service, select “No.” For more information, seeMonitor your instances using Amazon CloudWatch
配置一个网caler VPX instance by using the AWS CLI
You can use the AWS CLI to launch instances. For more information, see theAWS Command Line Interface Documentation.