Skip to content

Quiz: NAT

← Back to quiz index

2 questions

L1 (1 questions)

1. What is NAT and why is it used?

Show answer NAT (Network Address Translation) rewrites source or destination IPs as packets cross a boundary. SNAT: many internal hosts share one public IP for internet access. DNAT: external traffic is forwarded to an internal server (port forwarding). NAT also conserves IPv4 addresses.

L2 (1 questions)

1. An application behind NAT can reach the internet but inbound connections fail. Why?

Show answer NAT is stateful. Outbound connections create a state entry so replies work. Inbound connections have no state entry and are dropped. Fix: add a DNAT/port-forwarding rule, or use a reverse proxy or load balancer with a public IP.