carmen347
carmen347 4d ago โ€ข 10 views

Multiple Choice Questions: Iptables and Basic Firewall Concepts

Hey there! ๐Ÿ‘‹ Need to ace your Iptables and firewall concepts? I've got you covered with a quick study guide and a practice quiz to test your knowledge! Let's dive in! ๐Ÿค“
๐Ÿ’ป Computer Science & Technology
๐Ÿช„

๐Ÿš€ Can't Find Your Exact Topic?

Let our AI Worksheet Generator create custom study notes, online quizzes, and printable PDFs in seconds. 100% Free!

โœจ Generate Custom Content

1 Answers

โœ… Best Answer
User Avatar
terri.khan Dec 30, 2025

๐Ÿ“š Quick Study Guide

  • ๐Ÿ›ก๏ธ Iptables is a command-line firewall utility that uses policy chains to allow or block traffic.
  • ๐Ÿ”— Chains are lists of rules applied in order (INPUT, OUTPUT, FORWARD).
  • ๐ŸŽฏ Rules specify criteria (e.g., source/destination IP, port) and actions (ACCEPT, DROP, REJECT).
  • ๐Ÿ”ข Basic syntax: `iptables -A chain -i interface -p protocol --dport port -j target`
  • ๐Ÿ’ก `ACCEPT`: Allows the traffic.
  • ๐Ÿšซ `DROP`: Silently discards the traffic.
  • ๐Ÿšช `REJECT`: Sends an error message back to the sender.
  • ๐Ÿ”’ Default policies should be restrictive, allowing only necessary traffic.
  • ๐ŸŒ Firewalls operate at the network layer and transport layer of the OSI model.
  • ๐Ÿ”‘ Statefulness: Firewalls can track the state of connections.

๐Ÿงช Practice Quiz

  1. Which iptables chain is used to filter incoming traffic to the server itself?
    1. INPUT
    2. OUTPUT
    3. FORWARD
    4. FILTER
  2. Which iptables target silently discards a packet without sending a response?
    1. ACCEPT
    2. REJECT
    3. DROP
    4. LOG
  3. What does the `-p` option in an iptables rule specify?
    1. Port number
    2. Protocol
    3. Interface
    4. Target
  4. Which command lists all current iptables rules?
    1. iptables -L
    2. iptables -S
    3. iptables -F
    4. iptables -X
  5. Which iptables chain is used to filter traffic being routed *through* the server?
    1. INPUT
    2. OUTPUT
    3. FORWARD
    4. FILTER
  6. What is the purpose of stateful firewall inspection?
    1. To only allow traffic from trusted IP addresses.
    2. To track the state of network connections.
    3. To block all incoming traffic by default.
    4. To encrypt all network traffic.
  7. Which target sends back an ICMP "destination unreachable" message?
    1. ACCEPT
    2. REJECT
    3. DROP
    4. LOG
Click to see Answers
  1. A
  2. C
  3. B
  4. A
  5. C
  6. B
  7. B

Join the discussion

Please log in to post your answer.

Log In

Earn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! ๐Ÿš€