Firewall Flashcards

1
Q

Deshabilita servicio conflicto deprecado de firewall-cmd

A

netfilter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Tipo de zonas describe todas

A
Trusted
Home
Internal 
Work 
Public
External 
Dmz
Block
Drop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Donde están los archivos de configuración de firewalld

A

/etc/firewalld

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como se obtiene la

Zona actual default

A

–get-default-zone

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como se obtiene. Las zonas

A

–get-zones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Como se coloca públic como zona default

A

firewall-cmd –set-default-zone=ZONE —permanent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Como se coloca en runtime la confirmación persistente

A

firewall-cmd —reload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Como se listan todas las zonas

A

–list-all-zones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Ejemplo para agregar default zona dmZ

Agregar ip fuente y agregar servicio mysql a zona interna

A

[root@host ~]# firewall-cmd –set-default-zone=dmz
[root@host ~]# firewall-cmd –permanent –zone=internal \
–add-source=192.168.0.0/24
[root@host ~]# firewall-cmd –permanent –zone=internal –add-service=mysql
[root@host ~]# firewall-cmd –reload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Que error aparece cuando hay problemas de firewall

A

curl: (7) Failed to connect to servera.lab.example.com port 80: No route to host

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Enmascara el servicio de firewall nftables

A

sudo systemctl mask nftables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Como se válida el

Estatus del proceso de firewall

A

sudo systemctl status firewalld

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Ruta donde firewalld deja sus archivos de reglas

A

/usr/lib/firewalld

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Folders en /use/lib/firewalld

A
helpers
icmptypes 
ipsets 
services 
zones
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Cual es la estructura de un servicio en xml de firewalld tags

A

service
short
Description
Port protocol=“tcp” port=“80”/“

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Como se obtienen las zonas

A

firewalld-cmd —local list-zones

17
Q

Como se listan los puertos ocupados

A

firewalld-cmd —list-ports

18
Q

Opción para volver una regla permanente

A

firewall-cmd —persistent

19
Q

Como se carga al runtime las configuraciones persistentes

A

firewalld-come —reload

20
Q

Como se llama el servicio de firewall

A

systemctl status firewalld