The NAT maze

Hairpin NAT, 1:1 NAT and the difference between masquerade and src-nat in a realistic DMZ.

Intermediate · 75 min · 5 devices · Basic plan

Topology
ether2ether2eth1ether3eth1ether4eth1ether3InternetLAN192.168.10.0/24DMZ10.0.0.0/24Public IP: 203.0.113.10WANWANRouterRouterPC-ExternaPC-ExternaWeb Server 5Web Server 5PC GUI 5PC GUI 5

Scenario

ACME Corp publishes its DMZ web server on the Internet with an extra public IP from its provider. Employees cannot open the website through that public IP from the office, and the server goes out to the Internet with the link address instead of its own. You have to sort out the NAT so that each flow enters and leaves with the right address. You work on Router; PC-GUI5 and PC-Externa are there for testing from inside and from outside.

What you practise

  • 1:1 NAT and hairpin NAT
  • dst-nat and port forwarding
  • Masquerade and src-nat

Practise this lab

It deploys in your account in under a minute and you connect over VPN with WinBox, SSH or WebFig. The panel checks each objective.

Requires the Basic plan. You can create a free account and look at the lab before subscribing.

More Security labs

See all labs →