# Etapa 3

Antes de configurar o GitLab, você precisa garantir que suas regras de firewall sejam permissivas o suficiente para permitir o tráfego da web. Se você seguiu o guia vinculado nos pré-requisitos, você já terá um firewall ufw ativado.

Visualize o status atual do seu firewall ativo executando:

```
sudo ufw status
```

```
OutputStatus: active

To                         Action      From
--                         ------      ----
OpenSSH                    ALLOW       Anywhere                  
OpenSSH (v6)               ALLOW       Anywhere (v6)
```

As regras atuais permitem o tráfego SSH, mas o acesso a outros serviços é restrito. Como o GitLab é um aplicativo da Web, você precisa permitir o acesso HTTP. Como você aproveitará a capacidade do GitLab de solicitar e habilitar um certificado TLS/SSL gratuito de , permita também o acesso HTTPS.

O protocolo para mapeamento de porta para HTTP e HTTPS está disponível no arquivo `/etc/services`, para que você possa permitir esse tráfego por nome. Se você ainda não tinha o tráfego OpenSSH habilitado, você deve permitir esse tráfego:

```
sudo ufw allow http
sudo ufw allow https
sudo ufw allow OpenSSH
```

Você pode verificar o `ufw status` novamente para garantir que concedeu acesso a pelo menos estes dois serviços:

```
sudo ufw status
```

```
OutputStatus: active

To                         Action      From
--                         ------      ----
OpenSSH                    ALLOW       Anywhere                  
80/tcp                     ALLOW       Anywhere                  
443/tcp                    ALLOW       Anywhere                  
OpenSSH (v6)               ALLOW       Anywhere (v6)             
80/tcp (v6)                ALLOW       Anywhere (v6)             
443/tcp (v6)               ALLOW       Anywhere (v6)
```

Esta saída indica que a interface da web do GitLab agora está acessível depois que você configura o aplicativo.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liedsons-organization.gitbook.io/gitlab-no-ubuntu/instalacao-e-configuracao-script/etapa-3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
