Existing security groups

If you want to create your own security groups, two security groups must be created:
  • used for gateway nodes
  • used for all other nodes
The gateway nodes accept incoming requests for the cluster services and so require an additional port. These security groups will be applied when creating FreeIPA during environment creation and when you create Cloudera Data Hub clusters.

Review the following guidelines prior to adding security group rules. These describe all the inbound ports that need to be open and provides information on what to enter as a source range.

Gateway nodes security group

Table 1. Required inbound ports for gateway security group
Protocol Port Range Source Description

TCP

22

Your CDR.

This is an optional port for end-user SSH access to cluster hosts. You should open it to your organization’s CIDR.

TCP

443

Your CIDR and CDP CIDR.

This port is used to access the Data Hub cluster UIs via the Knox gateway. You must open this port to your organization’s CIDR in order to access cluster UIs.

When the CCM is enabled, you only need to set this to your CIDR.

TCP

9443

CDP CIDR.

This port is used by CDP to maintain management control of clusters and data lakes.

By default, when CDP creates the security groups automatically, it opens this port to the correct IP.

When CCM is enabled, this port is not needed.

TC, UDP

0-65535

Your internal VPC CIDR (for example, 10.10.0.0/16).

This is required for internal communication within the VPC.

ICMP

N/A

Your internal VPC CIDR (for example, 10.10.0.0/16).

This is required for internal communication within the VPC.

Example rules provided in the VPC console on AWS:

Figure 1. Example inbound rules
Example inbound rules, including type, protocol, port range, source, and description

Default nodes security group

Table 2. Required inbound ports for default security group
Protocol Port Range Source Description

TCP

22

Your CIDR.

This is an optional port for end-user SSH access to the hosts. You should open it to your organization’s CIDR.

TCP

9443

CDP CIDR.

This port is used by CDP to maintain management control of clusters.

By default, when CDP creates the security groups automatically, it opens this port to the correct IP.

When the CCM is enabled, this port is not needed.

TCP, UDP

0-65535

Your VPC CIDR (for example, 10.10.0.0/16).

This is required for internal communication within the VPC. TCP port 5432 is used for communication with the attached database.

ICMP

N/A

Your internal VPC CIDR (for example, 10.10.0.0/16).

This is required for internal communication within the VPC.

Example rules provided in the VPC console on AWS:

Figure 2. Example inbound rules
Example inbound rules, including type, protocol, port range, source, and description

Go to VPC console > Security Groups on AWS to create security groups and edit their rules.

To create a security group, click Create security group and provide the following:

Figure 3. Create security group
Create security group screen including Security group name, Description, and VPC parameters

You need to create two security groups: Knox and Default (you will see this terminology in the Cloudera Management Console UI and CLI, so if you decide to choose different names, make sure that you can distinguish between the two security groups).

Use the guidelines and examples provided above when editing rules.

Select the security group and click Inbound Rules > Edit rules to edit security group rules:

Figure 4. Edit security group rules
Security group rules on the AWS console Security Groups tab