LINUX+ XK0-006 V8 Security and troubleshooting Fictional web platform recovery · 2 of 4 Runs in your browser · no setup Original practice · Review pending

Activate a narrow nginx admin listener

Diagnose a failed nginx listener, constrain exposed paths, and correct an origin-revealing 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

Original practice · Review pending

Mapped to CompTIA XK0-006 objectives · Internal validation 2026-09-15 · Original ITForMe practice mapped to published objectives; not an official exam question. 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 (OS) 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; raw bind evidence, plausible competing causes, SELinux port labeling, route allowlisting, and redirect behavior were rechecked after difficulty-calibration feedback.

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.

Service and policy excerpts

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
[emerg] 2417#2417: bind() to 127.0.0.1:8186 failed (13: Permission denied)
$ sudo ausearch -m AVC -ts recent | tail -n 1
type=AVC avc: denied { name_bind } for pid=2417 comm="nginx" src=8186 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket permissive=0
$ sudo semanage port -l | grep '^http_port_t'
http_port_t tcp 80, 443, 8080

Candidate virtual host excerpt

code
server {
    listen 127.0.0.1:8186;
    server_name admin.northwind.test;
    location = / { return 302 http://127.0.0.1:8186/admin; }
    location / { proxy_pass http://127.0.0.1:9100; }
}

Change ticket

list
  • ›The edge connector and nginx run on the same proxy host; no LAN client needs this listener.
  • ›The sign-in flow uses /login and /login/totp, and the owner console is under /admin.
  • ›The admin hostname must not provide a second route to games or other public-site features.
  • ›Redirects shown to a browser must use the public HTTPS admin hostname and reveal no origin address or listener port.
02

Complete the response

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

Changes will save automatically.
01
single choice

Which diagnosis best fits the error log, AVC record, socket check, and current policy map?

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?Unanswered tasks and matches earn no points. A partial submission is scored and saved in your history.
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