Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #927 from erick0z/master
Browse files Browse the repository at this point in the history
[RFC] ansible: Add Firewall documentation
  • Loading branch information
mcastelino authored Dec 14, 2016
2 parents 70eed80 + eca3cde commit 51d5256
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
1 change: 1 addition & 0 deletions _DeploymentAndDistroPackaging/ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ also check requirements for [fedora](doc/requirements.md#fedora).
* CIAO can be installed in ClearLinux, Fedora 24 and Ubuntu 16.04.
CIAO dependencies will be installed automatically
* If running behind a proxy server read [this](doc/requirements.md#proxies)
* For firewall settings read [this](doc/firewall.md)

#### Deployment machine
The deployment machine can be any Linux OS as long as it has docker installed.
Expand Down
101 changes: 101 additions & 0 deletions _DeploymentAndDistroPackaging/ansible/doc/firewall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
Firewall Settings
=================

### Ciao Controller Nodes

| Port | Protocol | Description |
| ------------- |:-------------:| -----: |
| 8888 | TCP | Ciao Scheduler port |
| 8774 | TCP | Ciao Compute API port |
| 8776 | TCP | Ciao Volume API port |
| 9292 | TCP | Ciao Image API port |
| 5000 | TCP | Openstack Keystone public API port |
| 35357 | TCP | Openstack Keystone admin API port |
| 443 | TCP | Ciao WebUI port |

### Ciao Network Nodes

| Port | Protocol | Description |
| ------------- |:-------------:| -----: |
| 9999 | TCP | Ciao Network port |
| 67:68 | UDP | DHCP/BOOTP |
| 123 | UDP | NTP |
| 53 | TCP/UDP | DNS |
| 5355 | TCP/UDP | LLMNR |
| 323 | TCP/UDP | RPKI-RTR |

### Ciao Compute Nodes

| Port | Protocol | Description |
| ------------- |:-------------:| -----: |
| 9999 | TCP | Ciao Compute port |
| 67:68 | UDP | DHCP/BOOTP |
| 123 | UDP | NTP |
| 53 | TCP/UDP | DNS |

* Allow INPUT/OUTPUT port 47(GRE).
```
iptables -I INPUT 1 -p 47 -j ACCEPT
iptables -I OUTPUT 1 -p 47 -j ACCEPT
```

* For Ceph Cluster firewall configuration, check it's official documentation [Here](http://docs.ceph.com/docs/giant/rados/configuration/network-config-ref/).

Firewalld Service Example
-------------------------
In this example, a new zone is created per Ciao node

### Controller Node

```
[ciao@controller ~]$ sudo firewall-cmd --info-zone=ciao
ciao (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services:
ports: 8888/tcp 8774/tcp 8776/tcp 9292/tcp 5000/tcp 22/tcp 35357/tcp 53/tcp 443/tcp
protocols: icmp
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
```

### Network Node
```
[ciao@network ~]$ sudo firewall-cmd --info-zone=ciao
ciao (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: dns http https dhcp
ports: 9999/tcp 22/tcp 323/udp 68/udp 5355/tcp 67/udp 53/udp 5355/udp 53/tcp
protocols: gre igmp icmp ipv6
masquerade:
forward-ports:
source-ports:
icmp-blocks:
rich rules:
```

### Compute Node
```
[ciao@compute ~]$ sudo firewall-cmd --info-zone=ciao
ciao (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: http https dhcp dns
ports: 22/tcp 9999/tcp 312/udp 323/udp 68/udp
protocols: gre igmp
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
```

0 comments on commit 51d5256

Please sign in to comment.