nerdexam
CompTIA

XK0-005 · Question #459

A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

The correct answer is B. iptables -A INPUT -s 192.168.10.50 -j DROP. The correct command to block the IP address 192.168.10.50 from accessing a Linux server is: iptables -A INPUT -s 192.168.10.50 -j DROP This command appends a rule to the INPUT chain that matches the source address 192.168.10.50 and jumps to the DROP target, which discards the…

Security

Question

A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

Options

  • Aiptables -F INPUT -j 192.168.10.50 -m DROP
  • Biptables -A INPUT -s 192.168.10.50 -j DROP
  • Ciptables -i INPUT --ipv4 192.168.10.50 -z DROP
  • Diptables -j INPUT 192.168.10.50 -p DROP

How the community answered

(37 responses)
  • B
    92% (34)
  • C
    5% (2)
  • D
    3% (1)

Explanation

The correct command to block the IP address 192.168.10.50 from accessing a Linux server is: iptables -A INPUT -s 192.168.10.50 -j DROP This command appends a rule to the INPUT chain that matches the source address 192.168.10.50 and jumps to the DROP target, which discards the packet. The other commands are incorrect because they either have invalid syntax, wrong parameters, or wrong order of

Topics

#iptables#Firewall Rules#Network Security#Access Control

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice