How to open iptables ports inside a cluster?

How can I use iptables to open ports 21001-22000 in a cluster, allowing the worker nodes to communicate between them and with the front-end?

The cluster is configured with CentOS 6.3, Rocks 6.1 and iptables 1.4.7.


The following command run as root will do that:

# iptables -A INPUT -p tcp --dport 21001:22000 -j ACCEPT

Check the iptables(8) manpage for details.