Bird
0
0

You run sudo ufw allow 8080/tcp but the port is still blocked. What is the most likely error?

medium📝 Debug Q6 of 15
Linux CLI - System Administration
You run sudo ufw allow 8080/tcp but the port is still blocked. What is the most likely error?
AThe <code>ufw</code> firewall is not enabled
BPort 8080 is blocked by default and cannot be opened
CThe command syntax is incorrect
DTCP protocol is not supported by <code>ufw</code>
Step-by-Step Solution
Solution:
  1. Step 1: Check if ufw is enabled

    Allowing a port with ufw has no effect if the firewall is disabled.
  2. Step 2: Verify command syntax and protocol support

    The syntax is correct and TCP is supported, so the issue is likely the firewall status.
  3. Final Answer:

    The ufw firewall is not enabled -> Option A
  4. Quick Check:

    Enable ufw with sudo ufw enable before allowing ports [OK]
Quick Trick: Enable ufw before adding rules [OK]
Common Mistakes:
  • Assuming ports open without enabling firewall
  • Thinking TCP is unsupported

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes