Cloudy in client node

From - English Wiki

Revision as of 16:57, 17 July 2015 by Conxuro (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Cloudy uses a system to publish and search services, to share them with the other Cloudys. For this purpose, actually Serf is used.

This software opens a TCP port in the server (Cloudy) to listen to petitions and to be able to communicate to others.

Therefore, some additional steps are needed to allow a Cloudy installed in a client node to interact to other Cloudys:

1. Know the node’s public IP address (10.x.x.x); not the one assigned to Cloudy but the IP assigned to the client node.

  • You can go to the Guifi page of your node to know what is its IP.

2. Edit a couple of files and declare the public IP of the node. You have to add the IP in the configuration files in order to allow the software to announce correctly the public IP instead the private IP.

  • To do it, with the root user, write in the command line the following:
root@cloudy:~# echo "ADVERTISE_IP=10.x.x.x" >> /etc/avahi-ps-serf.conf
root@cloudy:~# echo "PUBLIC_IP=10.x.x.x" >> /etc/getinconf-client.conf
root@cloudy:~# /etc/init.d/serf restart

(where 10.x.x.x is the public IP of your node)

Exemple: in a node with IP address the files should be like this:


# Automatically generate file
# PORT=665

3. Do a port forwarding for the port 5000 (Serf). And if you want more services you will have to redirect (forward) the port of each service.

  • The configuration to do that depends on the device you have.
Personal tools