Take the 2-minute tour ×

What ports are required to be open on Ubuntu Cloud Guests running juju client instances? As far as I understand, Zookeeper needs to communicate with all its nodes -- So that is one requirement.. Anything else? Also what are the ports that are used by zookeeper? I need these so that I can put some security rules on my EC2 instances..

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

2181 is the ZooKeeper port, and does need to be open, but only from the agents to the zookeeper server. From outside going into that server, the juju client always tunnels everything over SSH.

This, however, is not actually necessary for you to know. Juju provisions the EC2 instances that it will use, and so, it also assigns security groups to them, and handles all security group authorization. You can of course use the EC2 API to assign your own, but you don't actually have to, as juju automates it.

share|improve this answer
Thanx for the reply. So should I assume that the open-port command may be a way to expose ports if I need to? I am asking these questions since I am authoring charms for my app specific deployments. –  Antojk Aug 11 '12 at 7:47
Also, it may be a nice feature if the open-ports can take an interface and ip-range/mask parameter to do the same giving some fine control to the charm author. –  Antojk Aug 11 '12 at 7:48
Since tunneling thru ssh is provided, that means I can tunnel through SSH to access my for e.g. DB instance directly.. –  Antojk Aug 11 '12 at 7:50
add comment

Your Answer


