nerdexam
LPI

303-200 · Question #66

What does the following iptables rule accomplish: iptables -A INPUT -s !127.0.0.0/8 -p tcp -dport 111 -j DROP

The correct answer is D. Drops all packets destined for port 111 unless they are from the local machine. See the full explanation below for the reasoning.

Question

What does the following iptables rule accomplish: iptables -A INPUT -s !127.0.0.0/8 -p tcp -dport 111 -j DROP

Options

  • ADrops all packets from the LAN destined for port 111.
  • BDrops all packets originating from the local machine unless they are destined for port 111.
  • CDrops all packets destined for port 111 which originate from the local machine.
  • DDrops all packets destined for port 111 unless they are from the local machine.

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    6% (2)
  • D
    81% (26)

Community Discussion

No community discussion yet for this question.

Full 303-200 Practice