Administer > Administer the Container Deployment Foundation > Network and Communication Security

Network and communication security

HPE recommends that you add the iptables rules listed below.

Important Apart from the listed ports on the specific hosts, all other ports should be blocked at the local host level.

Target server to configure the rules Required ports Service Direction Short description
NFS Server 111 NFS Nodes ->NFS Server NFS server port access by all nodes
NFS Server 2049 NFS Nodes ->NFS Server NFS server port access by all nodes
Master Node 2380 Etcd Master<-> Master Etcd service port for etcd cluster communication
Master Node 4001 Etcd Nodes -> Master Etcd service port for connection from client
All Nodes in Cluster 4194 Kubernetes Localhost only Cadvisor for local kubelet
All Nodes in Cluster 5000 Private Registry Localhost only Registry port for local host
Ingress Node 5443 MngPortal All -> Ingress Node The port exposed on ingress node. all clients could access this port
Master Node 8200 Vault Nodes->Master Vault port for client connection
Master Node 8201 Vault Nodes->Master Vault port for peer member connection
Master Node 8443 kubernetes Nodes->Master API server port for client connection
All Nodes in Cluster 10250 Kubernetes Nodes->Nodes Kubernete port for internal communication

All Nodes in Cluster

10251 Kubernetes Nodes->Nodes Kubernete port for internal communication

All Nodes in Cluster

10252 Kubernetes Nodes->Nodes Kubernete port for internal communication

All Nodes in Cluster

10255 Kubernetes Master ->Nodes Kubernete port for internal communication
NFS Server 20048 NFS Nodes ->NFS Server NFS server port access by all nodes

Example:

The cluster is installed on 10.10.10.10, 10.10.10.11, 10.10.10.12. The Master Node on: 10.10.10.10

To add an iptable rules to port 8443 on the master node do the following:

iptables -I INPUT 1 -p tcp -m tcp -s 0.0.0.0/0 --dport 8443 -j DROP

iptables -I INPUT 1 -p tcp -s 127.0.0.1 --dport 8443 -j ACCEPT

iptables -I INPUT 1 -p tcp -s 10.10.10.10 --dport 8443 -j ACCEPT

iptables -I INPUT 1 -p tcp -s 10.10.10.11 --dport 8443 -j ACCEPT

iptables -I INPUT 1 -p tcp -s 10.10.10.12 --dport 8443 -j ACCEPT