How to Configure DMZ Settings
Network dmz settings create a buffer zone between the public web and your private network. You set them up by placing public servers between outer and inner firewall rules. This boundary lets external users reach web apps while keeping internal databases off the internet. A clear setup stops attackers from moving into private subnets if a web host fails. Teams use this design to protect core data and meet strict security rules. How dmz settings work and safe defaults A buffer zone sits betwe
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Network dmz settings create a buffer zone between the public web and your private network. You set them up by placing public servers between outer and inner firewall rules.
This boundary lets external users reach web apps while keeping internal databases off the internet. A clear setup stops attackers from moving into private subnets if a web host fails. Teams use this design to protect core data and meet strict security rules.
How dmz settings work and safe defaults
A buffer zone sits between two distinct firewall rulesets or separate hardware appliances. The outer firewall checks traffic coming from the public internet into the perimeter subnet. It allows only specific ports, like web or mail traffic, to reach public servers.
The inner firewall sits between the buffer zone and your private internal network. This inner wall blocks almost all inbound requests starting from the perimeter zone. If an attacker takes over a public web host, the inner wall stops them.
This setup affects public workloads like web servers, mail relays, and domain name servers. It also affects engineers and automated scripts that log in to update those hosts. You should never put core databases or internal file shares inside this outer zone.
Safe defaults start with a strict deny rule for all traffic in both directions. Next, you open only the exact ports your public app needs to run. You must block perimeter hosts from opening new network paths into the private zone.
When a public app needs data, keep the database in the private network. Allow only the exact app host IP to talk to the database port. Use separate network cards and VLAN tags to keep zone traffic apart at all times.
How to check and audit perimeter rules
Once your rules are in place, you must check that the paths work right. Run port scans from outside the network to confirm only public ports respond. Then test from a perimeter host to make sure private subnets stay blocked.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You should also send all firewall packet logs to a central log server. Store this log server in the private zone so attackers cannot wipe the records. Review blocked packet counts each week to spot scans or bad app rules.
Check firewall rule changes through peer review before anyone pushes them to production. Old rules often pile up when teams retire apps or move servers around. Run a quarterly audit to remove open ports that no active service uses.
Still, static network rules only check the IP address and port at the start. Once a user or app logs in through an allowed port, the firewall stops looking. It cannot see which person ran a command or what query they sent.
Engineers often share SSH keys or database passwords to manage hosts across these zones. If a key leaks, an attacker walks right through the allowed firewall port. Static rules also cannot mask sensitive fields like emails, phone numbers, or card numbers.
To fix this gap, teams need controls that check identity on every single request. You need a way to approve commands and mask results in real time.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.
Before a query runs, hoop.dev guardrails check the statement against your rules, an AI Analyzer you configure can score intent or hold risky calls for human approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.
Frequently asked questions
What is the difference between a single and dual firewall setup?
A single firewall uses three network ports to separate public, perimeter, and private zones. A dual firewall setup uses two separate devices for stronger isolation against rule mistakes.
Should a database server ever live inside the perimeter zone?
No, you should always keep database servers inside the private internal network zone. If a database sits in the perimeter, a single host breach exposes raw records.
Why are home router dmz settings risky for work servers?
Home routers forward all incoming internet ports straight to a single local IP address. True enterprise perimeter zones block all ports by default and allow only required services.
Related guides
In this post