Commit 6fe117da authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

FTS-1267:Documented firewalld for fts-rest

parent 00090f54
Pipeline #661878 passed with stage
in 1 minute and 39 seconds
...@@ -3,6 +3,36 @@ FTS3-REST ...@@ -3,6 +3,36 @@ FTS3-REST
This is the FTS3 RESTful API. This is the FTS3 RESTful API.
For more detailed information about installation, usage, etc... please, check the [docs](docs/README.md) subdirectory. For more detailed information about installation, usage, etc... please, check the [docs](docs/README.md) subdirectory.
##Firewalld: How to set up a firewall using firewalld on centos7
Firewalld is installed by default on some Linux distributions, including many images of CentOS 7. However, it may be necessary for you to install firewalld yourself:
sudo yum install firewalld
After you install firewalld, you can enable the service and reboot your server. Keep in mind that enabling firewalld will cause the service to start up at boot. It is best practice to create your firewall rules and take the opportunity to test them before configuring this behavior in order to avoid potential issues.
sudo systemctl enable firewalld
sudo reboot
When the server restarts, your firewall should be brought up, your network interfaces should be put into the zones you configured (or fall back to the configured default zone), and any rules associated with the zone(s) will be applied to the associated interfaces.
We can verify that the service is running and reachable by typing:
sudo firewall-cmd --state
output
running
This indicates that our firewall is up and running with the default configuration.
When running fts-rest, we can allow this traffic for interfaces in our "public" zone for this session by copying first fts3rest.xml in /usr/lib/firewalld/services and then typing:
sudo firewall-cmd --zone=public --add-service=fts-rest
You can leave out the --zone= if you wish to modify the default zone. We can verify the operation was successful by using the --list-all or --list-services operations:
sudo firewall-cmd --zone=public --list-services
## Vagrant ## Vagrant
This repository contains a [Vagrantfile](https://www.vagrantup.com/) to make easier to develop. This repository contains a [Vagrantfile](https://www.vagrantup.com/) to make easier to develop.
Please, check [Vagran't install documentation](https://www.vagrantup.com/docs/installation/) to see how to get it Please, check [Vagran't install documentation](https://www.vagrantup.com/docs/installation/) to see how to get it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment