DMZ rules: between the LAN, the DMZ and the internet
Sign in to read this lesson
The server opens from the internet. Now we write the remaining directions: how staff reach the DMZ, how the web server reaches a database in the LAN, where the server downloads updates from. At the end we look at staff being unable to open their own site by its public address (hairpin).
What you will learn
- LAN → DMZ: the services staff and the admin need; no NAT, because both networks are internal.
- DMZ → LAN: closed by default. If needed, only a narrow exception from one server to one port of one address (for example web server → database).
- DMZ → internet: not
all, only the services needed (DNS, HTTPS, NTP), and if possible only update sites; NAT is on. - The FortiGate is stateful: the reply of an allowed connection returns by itself. Do not write a separate policy in the opposite direction for replies.
- If staff cannot open the site by its public address, that is the hairpin problem. The cleanest fix is to point the name at the server's internal address in the internal DNS.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.