Manage Network Security Flashcards

1
Q

What command is used to determine whether the httpd service is active?

A

systemctl is-active httpd

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

What command is used to enable and start the httpd service?

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 investigate why the httpd service fails to start?

A

systemctl status httpd.service

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

What command is used check whether SELinux is blocking the httpd service from binfing to the 1001/TCP port?

A

sealert -a /var/log/audit/audit.log

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

What command is used to find the correct port type for httpd service usage?

A

semanage port -l | grep ‘http’

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

What command is used to bind the 1001/TCP port to the http_port_t type?

A

semanage port -a -t http_port_t -p tcp 1001

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

What command is used to confirm that the 1001/TCP port is bounf to the http_port_t port type?

A

semanage port -l | grep ‘^http_port_t’

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

What command is used to enable and start the httpd service?

A

systemctl enable –now httpd

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

What command is used to verify the running state of the httpd service?

A

systemctl is-active httpd
systemctl is-enabled httpd

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

What command is used to test access to the web server?

A

curl http//<domain>
curl http//<domain>:1001</domain></domain>

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

What command is used to verify 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
12
Q

What command is used to correct the default zone and set it to public?

A

firewall-cmd –set-default-zone public

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

What command is used to determine the open ports that are listed in the public network zone?

A

firewall-cmd –zone=public –list-all

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

What command is used to add the 1001/TCP port to the public network zone?

A

firewall-cmd –permanent –zone=public –add-port=1001/tcp

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

What command is used to reload the firewall configuration?

A

firewall-cmd –reload

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

What command is used to verify the configuration of the firewall?

A

firewall-cmd –zone=public –list-all