File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,11 @@ sudo ufw status verbose
198
198
``` bash
199
199
# Editando o arquivo de configuração before.rules (ANTES DAS REGRAS) do UFW
200
200
sudo vim /etc/ufw/before.rules
201
+
202
+ # habilitando o número de linhas no editor de texto VIM
201
203
ESC SHIFT :set number < Enter>
204
+
205
+ # entrando no modo de edição do editor de texto VIM
202
206
INSERT
203
207
```
204
208
``` bash
@@ -238,24 +242,32 @@ sudo ufw status verbose
238
242
``` bash
239
243
# editando o arquivo de configuração do TCPWrappers Hosts.Deny
240
244
sudo vim /etc/hosts.deny
241
- INSERT
242
245
246
+ # entrando no modo de edição do editor de texto VIM
247
+ INSERT
248
+ ```
249
+ ``` bash
243
250
# alterar as informações na linha 17
244
251
# mais informações veja o arquivo Hosts.Deny no Github:
245
252
ALL: ALL: spawn /bin/echo " $( date) | Serviço Remoto %d | Host Remoto %c | Porta Remota %r | Processo Local %p" >> /var/log/hosts-deny.log
246
-
253
+ ```
254
+ ``` bash
247
255
# salvar e sair do arquivo
248
256
ESC SHIFT :x < Enter>
249
257
250
258
# editando o arquivo de configuração do TCPWrappers Hosts.Allow
251
259
sudo vim /etc/hosts.allow
252
- INSERT
253
260
261
+ # entrando no modo de edição do editor de texto VIM
262
+ INSERT
263
+ ```
264
+ ``` bash
254
265
# alterar as informações na linha 10
255
266
# OBSERVAÇÃO: ALTERAR A REDE CONFORME A SUA NECESSIDADE
256
267
# mais informações veja o arquivo Hosts.Allow no Github:
257
268
sshd: 172.16.1.0/24: spawn /bin/echo " $( date) | Serviço Remoto %d | Host Remoto %c | Porta Remota %r | Processo Local %p" >> /var/log/hosts-allow.log
258
-
269
+ ```
270
+ ``` bash
259
271
# salvar e sair do arquivo
260
272
ESC SHIFT :x < Enter>
261
273
```
You can’t perform that action at this time.
0 commit comments