LINUX+ XK0-006 V8 Security and troubleshooting Fictional web platform recovery · 2 of 4 Runs in your browser · no setup Preview · not independently reviewed

Activate a narrow nginx admin listener

Fix an SELinux bind denial, constrain exposed paths, and remove an internal-port redirect.

Estimated17 min
DifficultyAdvanced
Points16
Scenario brief

Northwind Orchard is separating its administrative pages from a larger website. The edge connector calls nginx on 127.0.0.1:8186. The listener must remain loopback-only, SELinux enforcing must stay enabled, and public users must never see the internal port.

Content record

Preview · not independently reviewed

Mapped to CompTIA XK0-006 objectives · Internal validation 2026-08-13 · Available as preview practice, but a named independent subject-matter expert has not yet verified the question and answer key.

Community review →
5.4Given a scenario, analyze and troubleshoot security issues on a Linux system. 3.3Given a scenario, apply operating system hardening techniques on a Linux system. 2.5Given a scenario, manage Linux using systemd.
Show review record and official sources

Method: Mapped to XK0-006 V8 objectives 2.5, 3.3, and 5.4; SELinux port labeling, nginx bind evidence, route allowlisting, and redirect behavior were checked against Red Hat and nginx documentation.

Current-profile check: 2026-08-12 · Next review due 2027-02-08

01

Inspect the evidence

Use only the information provided to complete the tasks.

Listener checks

code
$ sudo nginx -t
syntax is ok
test is successful
$ sudo systemctl reload nginx
$ sudo ss -lntp | grep ':8186'
<no output>
$ getenforce
Enforcing
$ sudo tail -n 1 /var/log/nginx/error.log
bind() to 127.0.0.1:8186 failed (13: Permission denied)
$ sudo semanage port -l | grep http_port_t
http_port_t tcp 80, 443, 8080
$ sudo semanage port -l | grep -w 8186
<no output>

Required path behavior

table
RequestRequired result
/302 to https://admin.northwind.test/admin
/login and /login/totpProxy to the admin application
/admin and /admin/...Proxy to the admin application
/games/nginx 404
02

Complete the response

Partial credit is available for matching, ordering, and multi-select tasks.

01
single choice

Which diagnosis best fits all listener evidence?

3 pts
Need a hint?

Restate the exact outcome or failure the prompt asks about before comparing choices.

Show another hint

Eliminate choices that solve a nearby problem, change more than requested, or do not fit the evidence.

02
command

Enter the command that adds TCP 8186 to the SELinux HTTP port type. Do not disable enforcing mode.

4 pts

Whitespace and capitalization are ignored when grading.

Need a hint?

Break the request into three parts: the action, the target, and the required constraint or verification.

Show another hint

Check the tool and subcommand first, then add only the flags, values, and paths the prompt requires.

03
matching

Match each request to the required nginx action.

5 pts
Need a hint?

Start with the row and choice that have the most distinctive purpose, then use that pair to narrow the rest.

Show another hint

For each remaining pair, explain the relationship in one sentence before selecting it.

04
multi select

Select the FOUR checks or choices that complete this listener safely.

4 pts
Need a hint?

Evaluate each option independently against the scenario evidence instead of treating the list as one decision.

Show another hint

Choose only options that directly satisfy the prompt; being generally true is not enough.

Ready to check your work?Submit to finish this session and review your feedback. Extra practice is optional.
Persistent progress

Attempt history

Every submission is retained. Starting another attempt never replaces or unlocks the previous one.

No attempts yet

Your first submitted score and detailed answer review will appear here.

Community quality control

Question or answer look wrong?

Proposals and votes help staff prioritize review. They never change the scoring key automatically.

Full review queue
No community corrections yet

Be the first to flag unclear wording, an answer-key issue, or a source that needs another look.

Propose a correction