LPIC-2 • Practice Test 6
Free LPIC-2 practice test — 10 questions with explanations. Set 6. No signup required.
A company has a Linux server with two network interfaces: eth0 connected to the internal 192.168.1.0/24 network, and eth1 connected to the internet via a public IP of 203.0.113.10. The server runs a web server on port 80 and needs to allow internal clients to access the internet while hiding their private IPs (MASQUERADE). Additionally, external users should be able to reach the web server using the public IP. The administrator has enabled IP forwarding and configured iptables with the following rules:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
However, internal clients can access the internet, but external users cannot reach the web server. What should the administrator do to fix the issue?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.