Manage Server Firewalls Flashcards

1
Q

What command is used to install httpd and mod_ssl packages which provide the Apache web server ability to server content over ssl?

A

dnf install httpd mod_ssl

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

What command is used to start and enable httpd?

A

systemctl enable –now httpd

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

What command is used to try to access the web server through port 80/TCP?

A

curl http://servera.lab.example.com

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

What command is used to try to access the web server over port 443/TCP?

A

curl -k https://servera.lab.example.com

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

What command is used to verify that the firewalld service is enabled and running?

A

systemctl status firewalld

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

What command is used to verify that the default firewall zone is set to the public zone?

A

firewall-cmd –get-default-zone

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

What command is used to set the default firewall zone to public?

A

firewall-cmd –set-default-zone public

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

What command is used to add the https service to the permanent configuration for the public network zone?

A

firewall-cmd –permanent –add-service=https

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

What command is used to reload the default firewall zone?

A

firewall-cmd –reload

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

What command is used to list the public default firewall zone?

A

firewall-cmd –permanent –zone=public –list-all

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

What command is used login to the web console running on the server to verify https service to the public firewall zone?

A

http://servera.lab.example.com:9090

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