1

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.

RSFalcon7
  • 163
  • 1
  • 6

1 Answers1

2

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.

dawud
  • 15,504