forked from tldr-pages/tldr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ufw: add pt_BR translation; */ufw: highlight
iptables
command (tldr…
…-pages#10793) * ufw : add pt_BR translation * ufw: highlight iptables command Signed-off-by: K.B.Dharun Krishna <[email protected]> --------- Signed-off-by: K.B.Dharun Krishna <[email protected]> Co-authored-by: K.B.Dharun Krishna <[email protected]>
- Loading branch information
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# ufw | ||
|
||
> Firewall Descomplicado. | ||
> Frontend para `iptables` com o objetivo de facilitar a configuração de um firewall. | ||
> Mais informações: <https://wiki.ubuntu.com/UncomplicatedFirewall>. | ||
- Habilitar ufw: | ||
|
||
`ufw enable` | ||
|
||
- Desabilitar ufw: | ||
|
||
`ufw disable` | ||
|
||
- Mostrar regras ufw, juntamente com seus números: | ||
|
||
`ufw status numbered` | ||
|
||
- Permitir tráfego de entrada na porta 5432 nesse host com um que identifique o serviço: | ||
|
||
`ufw allow {{5432}} comment "{{Service}}"` | ||
|
||
- Permitir apenas tráfego TCP de 192.168.0.4 pra qualquer endereço deste host, na porta 22 : | ||
|
||
`ufw allow proto {{tcp}} from {{192.168.0.4}} to {{any}} port {{22}}` | ||
|
||
- Negar tráfego na porta 80 desse host : | ||
|
||
`ufw deny {{80}}` | ||
|
||
- Negar todo o tráfego UDP para portas no intervalo 8412:8500: | ||
|
||
`ufw deny proto {{udp}} from {{any}} to {{any}} port {{8412:8500}}` | ||
|
||
- Deletar uma regra particular. O número da regra pode ser recuperado com o `ufw status numbered` comando: | ||
|
||
`ufw delete {{rule_number}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters