HomeTopicsDMZ & Gateways › DMZ Patterns

DMZ Patterns for File Exchange, Simple to Advanced

Once you accept that internet-facing file transfer needs a buffer between strangers and your interior network, the next question is practical: what shape should that buffer take? Nearly every real-world build is one of three recognizable patterns — a plain port forward, a standalone transfer server in the DMZ, or a reverse gateway that relays sessions without storing anything at the edge. They differ enormously in what an attacker gains by compromising the exposed piece, and in how much money and effort they demand from you.

This article walks through the three patterns one at a time, with a diagram and an honest assessment of each, then puts them side by side so you can choose by size and risk rather than by habit. It is part of our DMZ and gateway architecture series; if the phrase "blast radius" is new to you, read why file transfer services live in a DMZ first — this article builds directly on it.

The Job Every Pattern Must Do

Strip away the details and every pattern is solving the same problem: outsiders must be able to upload and download files, and you must limit what their access — or an attacker riding on it — can reach. A quick refresher on the vocabulary, because all three diagrams use it. The DMZ is a small buffer network between the internet and your interior, with a firewall boundary on each side. The edge host is whatever machine in that buffer accepts connections from strangers. The interior is everything you actually care about: file servers, directories, databases, people.

The three patterns place the transfer service differently relative to those zones:

  • Pattern 1 — port forward: no buffer at all. The firewall forwards the transfer port straight to a server on the interior network.
  • Pattern 2 — standalone DMZ server: a complete transfer server lives in the DMZ, files pause there briefly, and an interior job pulls them inward.
  • Pattern 3 — reverse gateway: a relay lives in the DMZ, stores nothing, and forwards each session to a real transfer server that stays inside.

Each is a legitimate engineering choice in the right circumstances — including, for some very small shops, the first one, provided its risks are understood and compensated. Let's take them in order.

A note on reading the diagrams, here and throughout the series: solid blue arrows are connections the design deliberately allows, drawn from the side that initiates them; red dashed arrows are paths the design blocks or that exist only as uncontained risk. The direction of each arrow matters as much as its presence — a theme that gets its own article later in the series.

Pattern 1: The Port Forward

The port forward is where nearly everyone starts, because it is one rule on the firewall you already own. The firewall watches the internet-facing address, and anything arriving on the transfer port — say port 22 for SFTP — is passed through to the transfer server's private address on the LAN. Partners connect, transfers work, and the whole thing took ten minutes.

The diagram shows what those ten minutes bought. The exposed server sits on the same network as everything else you run.

Internet Firewall Interior LAN — no buffer zone Transfer server port 22 forwarded here File server master data Domain controller Whatever compromises the transfer server stands beside everything else.

Call this what it is: not a DMZ pattern but the absence of one. The exposed server usually holds partner credentials, accumulates transferred files on its disk, and — worst of all — sits with unrestricted reach to every interior system. Compromise it and the attacker has skipped the perimeter entirely.

Almost nobody chooses this pattern deliberately; it accretes. A one-off exchange with a single partner became permanent, the "temporary" forward was never revisited, and three years later the box is carrying a dozen partner flows nobody fully remembers. That history matters, because the fix is rarely urgent-feeling — the setup works every day right up until the day it becomes the incident report.

Is it ever acceptable? Honestly: sometimes, briefly, at the small end. A shop with one server, no sensitive data flowing, strong authentication, aggressive patching, and a plan to grow out of it is taking a measured risk. But the compensations are doing all the work, and the pattern gives you nothing to contain a failure. If this diagram is your network, your highest-value next read is DMZ on a budget, because real separation is cheaper than most people assume.

Pattern 2: The Standalone DMZ Server

The standalone pattern is the workhorse of mid-size file exchange. A complete transfer server — its own accounts, folders, and logging — runs on an edge host in the DMZ. Partners connect to it exactly as they would in pattern 1; from the outside, nothing looks different. The difference is everything around it: the outer firewall admits only the transfer ports, and the inner firewall admits nothing from the DMZ at all.

Files arriving from partners land on the edge host's disk and pause there. On a short schedule, a job running on an interior machine connects outward to the edge host, collects the new arrivals, deletes them from the edge, and files them where the business needs them. Outbound files ride the mirror image: an interior job pushes them out to the edge, where partners collect. This is called store-and-forward — the file is stored briefly at the edge, then forwarded by a second hop.

Internet Outer firewall DMZ Transfer server local accounts, own folders files pause here briefly Inner firewall Interior Pull job runs on schedule File server final home pull, initiated inside DMZ never initiates inward Store-and-forward: files pause at the edge, then an interior job brings them home.

The strengths are substantial. The pattern is simple enough to run without specialist staff. It is resilient: if the interior side is down for maintenance, partners can still upload, and the backlog drains when the pull job resumes. Partner-facing behavior is completely standard, so nothing special is asked of the other side. And a compromise of the edge host yields only what the edge holds — which, if you run it with discipline, is a handful of local partner accounts and whatever files arrived in the last few minutes.

The weaknesses are the mirror of that "if." Files do touch the edge disk, so dwell time must be kept short and the cleanup honest — the discipline described in keeping data and credentials out of the DMZ. There is a second hop, so files reach the interior minutes after arrival rather than instantly. And it is one more server to patch and watch. On Windows networks, the edge role is commonly filled by a transfer server product such as Sysax Multi Server — SFTP, FTPS, and HTTPS on one box with per-account folders and activity logging — while the interior pull runs on a scheduler such as Sysax FTP Automation from a machine inside. The two never share credentials: the interior knows how to log into the edge, never the reverse.

Pattern 3: The Reverse Gateway

The third pattern removes even the brief pause at the edge. A reverse gateway — a specialized relay, sometimes called a reverse proxy when it speaks web protocols — lives in the DMZ. It terminates each partner connection: the partner's TLS or SSH session ends at the gateway, which authenticates or forwards the authentication, then opens its own connection to the real transfer server sitting safely in the interior. Every block of file data streams through the gateway's memory and onward; nothing is written to an edge disk, and no partner ever holds a network session that reaches the interior directly.

Internet Outer firewall DMZ Reverse gateway sessions end here no files stored Inner firewall Interior Real transfer server accounts, folders, and data never exposed directly one scoped relay path Better gateways invert the relay: the interior server dials out to the gateway first, so the inner firewall needs no inbound allow at all. Pass-through: data streams across the edge without ever resting on it.

The security win is obvious: capture the gateway and there are no stored files to steal, and — in a well-built deployment — no reusable credentials either. But be precise about the cost, because the diagram hides a subtlety. The gateway must talk to the interior server, and the naive way to allow that is an inner-firewall rule permitting the gateway to connect inward on one port. That is a narrow, single-destination exception to the "nothing inbound from the DMZ" rule — vastly better than a flat network, but a real exception that must be scoped and monitored. More sophisticated gateway designs invert the arrow: the interior server establishes an outbound control channel to the gateway and holds it open, sessions ride back across it, and the inner firewall keeps its perfect record of zero inbound allows. When you evaluate gateway products, this is the question to ask first.

The other honest costs: a protocol-aware relay is more complex than a file server, FTP and FTPS relaying in particular is fussy (data connections and passive ports must be handled by something that understands the protocol — the same machinery discussed in FTP through load balancers and proxies), and gateway products sit at the expensive end of the transfer market. This pattern earns its keep in regulated industries, at high partner counts, and wherever policy simply forbids business data at rest in a DMZ.

Two configuration habits make the standalone pattern dramatically safer in practice. First, every partner account on the edge is local to the transfer software — not a directory account — and is locked into its own folder, so one leaked partner password exposes one folder, not the server. Second, the edge host authenticates nobody and nothing toward the interior: the pull job inside holds a credential for the edge, while the edge holds no credential for anything. If those two habits sound like the whole trick, they nearly are, and they cost nothing but discipline.

Side by Side: What a Compromise Reaches

The clearest way to compare the patterns is to ask the assume-breach question of each: if the exposed piece falls, what does the attacker hold?

Question 1. Port forward 2. Standalone DMZ server 3. Reverse gateway
What the exposed box can reach The whole interior Nothing inward One scoped relay path, or nothing if inverted
Files at rest at the edge Yes — and it is the interior Briefly, if dwell is disciplined No
Partner credentials at the edge Yes, on an interior box Yes — local, edge-only accounts Minimal or none
Cost and complexity Lowest Moderate — one extra host and a pull job Highest — specialized software and skills
Survives interior downtime No Yes — edge queues uploads No — relay needs the interior live
Typical fit Stopgap at the very small end Most small and mid-size exchanges Regulated or high-volume environments

Notice a subtlety in the middle column: the standalone server queues uploads while the interior is down, which the gateway cannot do — a rare case where the cheaper pattern is operationally more robust. Architecture choices are tradeoffs all the way down, which is why "advanced" should never be read as "always better."

Choosing by Size and Risk

The right pattern falls out of a handful of questions about your data, your partners, and your team. Work through this list honestly:

Choosing a DMZ pattern - six questions
1. How sensitive is the data in flight?     regulated/PII -> lean pattern 3
2. Could you tolerate files resting minutes
   at the edge if it is swept and watched?  yes -> pattern 2 is enough
3. How many partners connect?               a handful -> 2; hundreds -> 3
4. Who runs this? one generalist admin?     favor 2 - it fails simply
5. Must uploads keep working during
   interior maintenance windows?            yes -> favor 2 (edge queues)
6. Is there budget for gateway software
   and the skills to operate it?            no -> a disciplined 2 beats a sloppy 3

For most readers of this series — a small-to-mid-size shop, a generalist admin, a moderate partner list — the answers converge on pattern 2: a hardened standalone server in a real DMZ, short dwell times, an inside-initiated pull, and logs shipped off the edge. It delivers most of the gateway's containment at a fraction of its complexity, and every part of it can be built from ordinary components you already understand.

Move toward pattern 3 when a regulator or customer contract says data must never rest in the DMZ, when partner counts grow into the hundreds, or when you need central policy across many internal endpoints. Move away from pattern 1 as soon as you can move anywhere at all — and if you are stuck with it for now, compensate: strong keys or passwords, aggressive patching, tight per-account folder locks, and honest monitoring, then plan the migration.

Remember: a disciplined pattern 2 beats a sloppy pattern 3. The attacker does not care how advanced your architecture diagram looks — only what the exposed box actually reaches, holds, and leaks when it falls.

Details That Decide Success in Every Pattern

Whichever shape you pick, four cross-cutting details do more for security than the choice of pattern itself.

Direction of initiation. In patterns 2 and 3 the entire benefit rests on connections crossing the inner boundary from the safe side. The per-leg rules — what each boundary should allow, in which direction, and nothing else — are worked through with copyable rule sets in designing inbound vs outbound flows.

Protocol and port surface. SFTP exposes one port at the edge; FTPS exposes its control port plus a passive data range that the outer firewall must admit and the server must publish correctly. The fewer holes in the outer wall, the easier every audit becomes — the comparison is laid out in the firewall's view of the protocols, and the passive-range mechanics in configuring passive port ranges.

Logging off the edge. Every pattern puts some machine where strangers can hammer it. That machine's logs must leave it immediately, so a successful attacker cannot rewrite history. Our transfer logging and audit series covers the how.

Hardening the exposed piece. Gateway or server, the exposed software must be minimal, patched, and configured with assume-breach paranoia — the DMZ-specific checklist comes later in this series, and the general program lives in our hardening transfer servers pillar.

Name Your Pattern, Then Improve It

Look at your own network and name what you have. A forwarded port into the LAN is pattern 1 — plan your exit. A transfer server in a buffer zone with an interior pull is pattern 2 — tighten dwell time, direction rules, and monitoring until a compromise of the edge would be a bad afternoon instead of a bad quarter. A relay that keeps files off the edge entirely is pattern 3 — verify the relay path is scoped or inverted, because a gateway with a wide-open inner allow is pattern 1 wearing a suit.

The next articles in the series deepen each piece: keeping data and credentials out of the DMZ for the discipline that makes pattern 2 safe, and inbound vs outbound flow design for the firewall rules every pattern stands on.

Frequently Asked Questions

Is a port forward ever an acceptable long-term design?
As a long-term design for business file exchange, no — it places an internet-exposed service beside everything you own. It can be an understood, compensated stopgap for a very small shop with nothing sensitive in flight, but it should always have a planned end date.
Does the standalone DMZ server pattern slow transfers down?
The partner-facing transfer runs at full speed; the file simply waits at the edge until the next pull cycle, so interior delivery lags by minutes rather than seconds. For nearly all business flows that lag is invisible. If a flow genuinely needs instant delivery, shorten the pull interval or consider a gateway.
Is a reverse gateway the same thing as a load balancer?
They are cousins. Both sit in front of servers and relay client connections. A load balancer's job is spreading traffic across several servers; a reverse gateway's job is keeping sessions and data off the edge. Some products do both, and FTP-family protocols need the relay to be protocol-aware either way.
Which pattern does a compliance auditor expect to see?
Auditors care about the properties, not the pattern name: exposed services separated from the interior, no interior credentials at the edge, controlled data dwell, and logs that survive a compromise. A disciplined standalone DMZ server demonstrates all four; some regimes additionally require that data never rest in the DMZ, which points to a gateway.
Can I combine the patterns?
Yes, and larger shops often do: a gateway for the high-sensitivity partner lane, a standalone DMZ server for routine bulk exchange. The rules that must hold everywhere are the same — deny DMZ-to-interior by default, keep credentials and long-lived data off the edge, and log off-box.
Do these patterns apply to HTTPS file exchange too?
Completely. A web-based upload portal is an internet-facing transfer service like any other, and the same three shapes apply: forwarded straight to an interior box, hosted standalone in the DMZ, or fronted by a reverse proxy. HTTPS actually relays more easily than FTP-family protocols because everything travels on one port.

From the Sysax team: we build secure file transfer software for Windows — Sysax Multi Server, an FTP, FTPS, SFTP, and HTTPS server, and Sysax FTP Automation for scheduled, scripted transfers. Free trials are on the download page.