You want to configure your Linux firewall to block all network traffic addressed to the Telnet service on the local system. Which of the following commands should you use?
  1. iptables -t filter -A INPUT -s 0/0 -p tcp -dport 23 -j DROP
  2. iptables -t filter -A OUTPUT -s 0/0 -p tcp -dport 23 -j DROP
  3. iptables -t filter -A INPUT -s 0/0 -p tcp -dport 80 -j DROP
  4. iptables -t filter -A INPUT -s 0/0 -p tcp -dport 53 -j ACCEPT
Explanation
Answer - A - You should use the iptables -t filter -A INPUT -s 0/0 -p tcp -dport 23 -j DROP command to configure your Linux firewall to block all network traffic addressed to the Telnet service on the local system.

Key Takeaway: All IP packets inspected by iptables pass through a sequence of built-in tables for processing. Each of these queues inspects a particular type of packet activity and is controlled by an associated packet filtering chain. The second table is the filter queue. This has three built-in chains on which you can place your firewall policy rules; forward chain, input chain, and output chain.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz