---
title: Allows a Network
slug: homologacao-atmosphere/allows-a-network
description: Learn about a network configuration module that enables easy setup of parameters like table name, network interface, protocol, port, and allow/deny options. This module leverages parameters from the Shell module and offers an example YAML code for guidanc
createdAt: 2022-07-26T13:46:46.000Z
---

## Resumo

- Permite uma rede

## Parâmetros

| **Parâmetro**      | **Tipo** | **Escolhas \| Valor Padrão**                                                                                                                                                                                               | **Comentários**     |
| ------------------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| table              | string   |                                                                                                                                                                                                                            | Nome da tabela.     |
| network\_interface |          |                                                                                                                                                                                                                            |                     |
| network\_protocol  |          | - tcp<br />- utp<br />- icmp                                                                                                                                                                                               | protocolo           |
| port               |          |                                                                                                                                                                                                                            | porta               |
| allow\_deny        |          | - [](https://www.google.com/search?rlz=1C5CHFA_enBR999BR999\&sxsrf=ALiCzsalauNzne54Ttdo1HHyVu0OEuw1MQ:1658872983993\&q=tcp+udp+icmp\&spell=1\&sa=X\&ved=2ahUKEwjn0cC3x5f5AhU_EbkGHZY4DYAQkeECKAB6BAgBEDg)allow<br />- deny | Bloquear ou liberar |

Utiliza parâmetros do módulo [Shell](https://docs.simonops.com/homologacao-atmosphere/shell).

## Exemplos

```yaml
- shell: 
    arguments: sudo iptables -A {{input.table}}{{input.network_interface}} -p {{input.network_protocol}} --dport {{input.port}} -m conntrack --ctstate NEW,ESTABLISHED -j {{input.allow_deny}}
  register: result
```

## Valores retornados

| **Chave**        | **Tipo** | **Retornado quando** | **Descrição**              |
| ---------------- | -------- | -------------------- | -------------------------- |
| output           | string   | Sempre               | Saída da execução          |
| had\_errors      | boolean  | Sempre               | Se teve erros              |
| output\_errors   | string   | Sempre               | Erros de saída da execução |
| output\_warnings | string   | Sempre               | Avisos de saída            |

