Skip to main content

Iptables Rules For 2 Node Elasticsearch Cluster

Below shell script is useful for securing two node elasticsearch cluster. To apply suitable iptables rules, just run it on each of the ES Nodes.

With this script rules are applied for:
Allowing traffic on loopback adapters.
Allowing ES Nodes to communicate each other.
Allowing incoming ssh connections.
Allowing incoming icmp (ping) requests.
Allowing outgoing DNS requests.
Allowing Access to Elasticsearch HTTP Interface.
Dropping all other traffic.


Popular posts from this blog

Find and replace with sed command in Linux

Find and replace feature is always handy. It can turn into a torture when it comes to change or delete a simple constant string in a text file. There is a handy tool in linux for doing these kind of tihngs. Actually sed is not a text editor but it is used outside of the text file to make changes.