Set up a firewall on all compute nodes in an IBM® Spectrum Cluster Foundation Community
Edition cluster
within a secure network by configuring the iptables settings.
About this task
In this task, the iptables settings
are configured on all compute nodes that are placed in a secure network
cluster. To configure extra security rules, more configurations might
be required on the network switches.
Procedure
- Log in to the Web Portal as
a system administrator.
- Click the Clusters tab and select
the Cluster Templates menu item.
- Select an existing cluster template, and click Modify,
or click New to create a cluster template.
- From the Cluster Template Designer,
under the Prebuilt Templates menu, select and drag the Secure Network
Sample to the post-provision script layer of the tier
that you want to set up a firewall on.
- Select the newly added Secure Network Firewall
Sample and modify the script properties and variables.
- Go to the User-defined Variables tab,
and click Add to add a variable that is named PROVISION_NICS.
The type must be set to Single Value and the
value must be set to the name of your provisioning network interface. For example, eth0.
- Go to the Properties tab. To
edit the script in any way, select the Edit option. If not changes are made, the default configuration is
applied to all of the nodes in this tier.
- In step 5, if no changes were made to the script, specifically,
if the NFS servers are enabled to connect to fixed ports ensure that
the NFS settings are correct. Otherwise, omit this step. To ensure
that the IBM Spectrum Cluster Foundation Community
Edition management
node settings are set so that the NFS server listens to the fixed
ports. These settings ensure that the compute nodes can be mounted.
- Modify the nfs file in the /etc/sysconfig directory.
Specify fixed port numbers for the following items:
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020
- Restart the NFS service:
On RHEL:
# service nfslock restart
# service nfs restart
# service rpcsvcgssd restart
On SLES:
# service portmap restart
# service nfs restart
# service rpcsvcgssd restart
Results
All compute nodes are placed in a secure network cluster.