nerdexam
CompTIA

XK0-004 · Question #10

A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the outp

The correct answer is A. echo "1" > /proc/sys/net/ipv4/ip_forward. IP forwarding is often used in conjunction with iptables firewall configuration. In order to leverage IP forwarding, you must first enable it in the kernel. change from 0 to 1 to enable IP forwarding in the kernel echo "1" > /proc/sys/net/ipv4/ip_forward

Server Side & Network Concepts

Question

A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables –L command appears to contain a complete firewall configuration. Which of the following commands does the administrator need to issue for the router to be fully functional?

Options

  • Aecho "1" > /proc/sys/net/ipv4/ip_forward
  • Becho "0" > /proc/sys/net/ipv4/tcp_abort_on_overflow
  • Cecho "0" > /proc/sys/net/ipv4/max_connections
  • Decho "1" > /proc/sys/net/ipv4/ip_default_ttl

How the community answered

(18 responses)
  • A
    78% (14)
  • B
    11% (2)
  • C
    6% (1)
  • D
    6% (1)

Explanation

IP forwarding is often used in conjunction with iptables firewall configuration. In order to leverage IP forwarding, you must first enable it in the kernel. change from 0 to 1 to enable IP forwarding in the kernel echo "1" > /proc/sys/net/ipv4/ip_forward

Topics

#IP forwarding#routing#kernel parameters#proc filesystem

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice