Restricting Medplum access by IP address

Teams that want Medplum reachable only from an office, VPN or on-premises devices need to know where IP rules sit in the access path, how rule order changes outcomes and which integrations need exceptions. This page covers those decisions and the checks to run before go-live.

On this page

Restricting Medplum access by IP address: when network allow lists fit

A clinical or compliance team that wants Medplum usable only from approved networks, such as a corporate VPN or on-premises devices, can use allow and block rules on access policies to limit where requests come from. IP rules narrow the network path to the platform, but they do not replace identity, multi-factor authentication or least-privilege access policies. A user on an approved network with the wrong credentials, or a valid account with broader rights than it needs, is still a problem an IP rule will not catch.

Before relying on IP rules, confirm the exact rule syntax, field names and evaluation behavior in the Medplum documentation for the version you run, because the behavior of allow and block rules, including how they interact and in what order they are evaluated, has to be verified rather than assumed. Ask your Medplum contact or review the Medplum versions and release policy to confirm which minor release your deployment is on, and test the rules in a non-production project first. Note whether the rules apply to the web app, the API, the Agent and client applications alike, since each one reaches the server from a different address.

IP allow lists fit best where users and devices sit on stable, known networks, such as a fixed clinic site or a managed VPN egress range. They fit poorly where staff work from home, mobile networks change addresses often, or integrations call from cloud services with shifting IPs. Map every caller before writing the rules, including Bots, Subscriptions, interface engines and any Agent hosts, because a rule that blocks one of them can stop clinical traffic. Plan an exception process and an owner for changes to address ranges so the list does not drift out of date.

How a request passes IP rules, sign-in and access policies

The request starts on a corporate network, a VPN or an on-premises device, then crosses a load balancer or ingress before it reaches the Medplum server. The source IP the server sees may be the proxy's address rather than the client's, so check how forwarded client headers are set and trusted. The server then checks IP rules on the access policy, hands the user to Medplum Auth for sign-in, and evaluates the access policy before the FHIR resource is returned. The step order shown is one to confirm against the Medplum docs for your version.

Request path where the source IP may change at the edge and proxy hops.

Which IP restriction approach fits each network model

This table compares four ways to limit who can reach a self-hosted Medplum deployment: IP rules on access policies, network controls outside Medplum, VPN-only reachability, and separate handling for integrations and Agent connections. Read each row against your network model, then confirm the boundary of each control in your own environment before you rely on it.

ApproachBest fit and what it restrictsLimits and what to confirmWho maintains it
IP allow and block rules on Medplum access policiesFits a small set of known sources, such as a fixed office range or specific on-premises devices, applied per user or client through access policy IP rules. Restricts requests by source address at the Medplum application layer.Confirm the exact rule syntax, rule evaluation order and how wildcard blocks interact with exceptions in your Medplum version. Rules do not replace network segmentation, and a proxy or NAT in front of Medplum can make every request appear to come from one address.Medplum administrators, through access policy configuration and review
Network controls outside Medplum (security groups, firewall, load balancer or WAF rules)Fits deployments where the infrastructure team already enforces source ranges and port rules at the cloud or data center edge. Restricts traffic before it reaches the Medplum server, including traffic to the database and cache ports if those are exposed.Medplum's application rules cannot see traffic that these controls drop, so logs will differ. Confirm which layer sees the true client address after load balancers, and that PostgreSQL and Redis are not reachable from outside the server network.Cloud or network team, through security groups, firewall policy or load balancer rules
VPN-only reachability for the whole deploymentFits organizations that want staff, devices and administrators to reach Medplum only through a corporate VPN. Restricts the whole deployment, including the web app, API and admin consoles, to tunnel addresses.A VPN does not separate users inside the tunnel, so pair it with Medplum access policies for least privilege. Confirm that patient-facing apps, external identity provider callbacks and any third-party integration can still reach the endpoints they need.Network team for the VPN, with Medplum administrators for application access
Separate handling for integrations and Agent connectionsFits interfaces, devices and on-premises systems that connect from fixed hosts or private networks, where a broad user rule would be too loose. Covers client applications and the Medplum Agent, which connect from systems that need their own reachability path.Confirm which source addresses each integration uses, whether they originate from a NAT or cloud egress range that changes, and how credentials are scoped. Document each exception with its owner, because exceptions often outlive the project that needed them.Integration owners, with Medplum administrators and the network team

How IP rules apply to staff, devices, integrations and patients

Clinical and administrative staff usually reach Medplum from a fixed office range or through a corporate VPN, which makes an allow rule the natural control for this group. The rule should admit the public addresses that those users present to Medplum after translation, since that is what the server evaluates. Blocking this group carries an operational risk: a rule that is too narrow can lock clinicians out during a shift, and an outage at the VPN concentrator can look like a Medplum failure.

  • Allow the egress range: Permit the public addresses the VPN concentrator or office firewall uses when it sends traffic to Medplum, and document the range with the network team.
  • Account for shared NAT: Many users behind one translated address means one rule covers everyone on that network, so the IP rule cannot tell a compromised laptop from a clinician's workstation.
  • Check split tunneling: Confirm whether Medplum traffic goes through the VPN or directly to the internet, because a split tunnel changes the source address the server sees.
  • Include failover egress: List secondary VPN or ISP addresses so a failover does not cut off staff.
  • Define remote exceptions: Decide who approves access from home or travel networks and how long an exception lasts.

Before enforcing the rule, confirm the source address recorded in the server's logs for a test sign-in from each network.

How rule order, wildcard blocks and exceptions change who gets in

The outcome of a set of IP allow and block rules depends on the order in which they are evaluated, not just on what each rule says. A broad wildcard block placed early in the list can override a narrower allow written for a specific integration, so a partner system that worked in testing can start receiving denials after an unrelated rule is added. Before you write any rules, confirm in Medplum's documentation for your exact version how IP rules on an access policy are evaluated: whether the first match wins, whether later rules can override earlier ones, and how wildcard patterns are written. Record the answers in your change log, because the behavior is the thing your rule set depends on.

Integrations that call Medplum from a fixed egress address, such as a clinical system, a lab interface or a cloud job with a static outbound IP, are the usual reason for exceptions. Design each exception as a narrow allow for one address or range, tied to a named integration and an access policy that also limits what that client can do. Write the exception above any broad block that covers the same range, and keep a list of which systems depend on which addresses. Ask your integration owners to confirm their egress addresses in writing, and check whether a NAT gateway, proxy or load balancer in front of Medplum changes the address Medplum sees. If it does, the rule you write will not match the traffic you expect.

A single mistaken block can lock out administrators, including the people who would need to fix it. Keep an allow rule for your administrator network on every policy that governs admin accounts, and confirm that a break-glass path exists that does not depend on the rule you are changing. Test each change with a non-production Medplum project first, using a test user from each network you need to keep working and a request from each integration that must still succeed, and record the expected result for each. Only then apply the same rules to production, with a rollback plan that you have checked before the change window opens.

Setting up IP rules on an access policy

This sequence moves IP restrictions from an idea to a tested, monitored rule set on Medplum. It starts by mapping the networks and hosts that must reach the platform, then proves that administrators and integrations behave as intended before any rule reaches production.

  1. Inventory approved networks and egress addresses

    The network team lists every location that should reach Medplum, such as office sites, on-premises clinical devices and the corporate VPN. For each one, they record the source address Medplum will actually see, including NAT gateway and VPN concentrator egress addresses, which often differ from the addresses on internal machines. The check is a table where each approved location maps to one or more observed public source addresses, confirmed by a test request from that location and reviewed against the server's access logs.

  2. Inventory integrations and Agent hosts

    The integration owner lists every system that calls Medplum from outside the approved networks, including cloud-hosted services, partner endpoints and any Medplum Agent hosts that connect to on-premises systems. Each entry records whether its address is fixed, how it authenticates and who owns it. Any integration without a fixed address is flagged, because it will need a different rule design or a documented exception. The check is a signed-off list where every machine client has an owner and an address status.

  3. Confirm the access policy model in the deployment

    The platform engineer reviews the access policies that already apply to administrators, clinical users, clients and Bots, and confirms how IP rules are evaluated in the Medplum version the deployment runs. This includes which policy objects carry the rules, which users and clients each policy applies to, and whether a rule set is enforced on administrator accounts at all. Confirm these details against the current Medplum access policy documentation for the running version, not from memory. The check is a written note of the policy objects in scope and a test account showing which policies it is bound to.

  4. Draft allow and exception rules

    The security and platform team writes the proposed IP rules as a short document. It lists allow entries for approved networks, exception entries for integrations with fixed addresses, and an explicit decision on any broad block. Each rule has a stated purpose and owner. Rule order is reviewed with the policy engine's evaluation behavior in mind, so that a block does not unintentionally override an earlier allow. The check is a peer review in which someone other than the author walks through each request type and predicts the outcome.

  5. Apply and test rules in a test project

    The rules are applied first to a non-production Medplum project that mirrors the production access policy structure, with test users and test clients. The team runs the predicted outcomes from the review as scripted requests and records each result. Any mismatch between expected and actual behavior sends the rule set back to drafting. The check is a results log in which every predicted outcome is matched by an observed outcome, with no unexplained denials.

  6. Verify administrator and integration access

    The tester signs in as an administrator from an approved network and again from outside it, and confirms that access is allowed and denied as designed. The same check runs for each integration, using its real credentials from its real source address, to confirm it still authenticates and reads and writes the resources it needs. Denials from unapproved locations should be visible in the logs with a clear reason. The check is a signed record for each administrator path and each integration, showing the source address, the result and the log entry.

  7. Document and test the break-glass path

    The team writes a break-glass procedure that describes how a named administrator regains access if rules lock out the normal approved network, such as during a VPN outage. The procedure names who can invoke it, where its credentials are stored, how it is logged and how the rule change is reversed afterward. It is rehearsed in the test project, not described only on paper. The check is a rehearsed run in which the procedure restores access and the audit trail shows each step.

  8. Roll out and monitor denied requests

    The approved rule set is applied to production in a change window agreed with the operations and clinical leads, with a rollback step ready. After rollout, the operations team reviews denied requests in the server logs daily at first, then on a schedule they set, looking for legitimate users or integrations being blocked. Each new source address goes through the inventory and drafting steps again before it is added. The check is a monitoring routine with a named owner and a record of every denial reviewed and its outcome.

Failure modes that catch teams out with IP allow lists

IP allow lists look simple, but they depend on accurate source addresses, complete coverage of every protocol and every calling system. The risks below share one pattern: a rule that is correct on paper fails when a network, proxy, or integration behaves differently than the plan assumed.

Lockout after a network change

A VPN gateway replacement, a new office circuit, or an ISP address change can cut off every administrator at once. Keep a break-glass path that does not depend on the allow list, such as a second approved network or an out-of-band admin account, and confirm it works before you enable the rule. Test the rule from each approved location, not only from the one you use daily.

Every request appears from one address

When a load balancer, reverse proxy, or CDN sits in front of Medplum, the server may see the proxy's address instead of the client's. A rule written against client addresses then either allows everyone or blocks everyone. Confirm which headers your proxy sets, trust them only from known proxy addresses, and verify the address Medplum logs for a test request from an approved device.

IPv6 traffic bypasses IPv4 rules

An allow list written only with IPv4 ranges does not cover clients that connect over IPv6, and a dual-stack network may send some traffic that way without warning. Decide whether IPv6 is in scope, add matching IPv6 ranges, or disable IPv6 on the path to Medplum. Check both protocols from an approved device and from a device outside the network.

Wildcard blocks break integrations

A broad block rule written to stop unknown traffic can also stop interfaces, scheduled jobs, and partner systems that call Medplum from fixed but unlisted hosts. Inventory every system that calls the API before adding a block, and add named exceptions for each integration with the narrowest address range that works. Review rule order after each change, since an earlier block can override a later exception.

Blocking the Agent or a Bot host

The Medplum Agent and Bots that run on separate servers make outbound calls that look like any other client. If their host addresses fall outside the allow list, clinical device data and automated processes stop without a clear error on the clinical side. Record the source address of each Agent and Bot host, add it to the exceptions, and confirm the connection after every network or cloud change.

Stolen tokens from an allowed network

An allow list limits where requests come from, but it does not check who is making them. A token copied from a laptop or a service account can still be used from an approved address, so the rule creates a false sense of security. Pair IP rules with short token lifetimes, least-privilege access policies, client credential rotation, and audit log review of unusual access patterns.

What buyers ask before restricting Medplum by IP address

What drives the cost of restricting Medplum access by IP address?

The cost follows the number of networks and access paths to define, the number of integrations and external systems that call Medplum, the number of environments, and whether Medplum runs on your own infrastructure or on Medplum Cloud. Each network that needs an allow rule adds inventory, testing and sign-off work. Each integration that calls from a fixed or changing address adds egress mapping and exception handling. Separate development, staging and production environments multiply the rule sets to review. A quote should break out the discovery, rule design, testing against real traffic, and handover to your team, and say which items are one-time and which need ongoing review when networks change. Ask for the assumed number of networks and integrations so you can compare quotes on the same basis.

How long does an IP restriction project take?

The timeline depends mainly on how quickly your team can produce an accurate list of networks and integration egress addresses, and on how many systems must be tested before enforcement. Discovery is often the longest step because addresses behind VPNs, NAT gateways and cloud integrations are not always documented. Testing rules in a non-production environment, then confirming that every integration still authenticates after a change, also takes time. Ask any partner to state the phases, the dependencies on your network and change teams, and the change window needed for firewall or VPN updates. Any duration in a proposal should follow from that written scope rather than a generic estimate.

What must our team provide before the work starts?

You need to provide a current network inventory, the owners of your VPN concentrator, firewall and cloud network controls, and a list of every system that calls Medplum with its egress addresses. Include on-premises devices, the Medplum Agent host if you use one, third-party apps, Bots that call external services, and any clinical system that sends data through an interface. Name the person who can approve a change and who can roll it back. Without the egress list, allow rules tend to block integrations that were never identified, so this list is the most important input. Confirm which addresses are static and which come from a shared provider pool.

Can our internal team set up IP access rules without a partner?

Often yes, if your team already manages Medplum access policies, firewall rules and VPN configuration, and has a test environment where a bad rule can be reverted without affecting patients or clinicians. The work is not complex in isolation, but errors come from incomplete integration inventories and from rule order, not from the rule syntax. Consider whether the people who own Medplum, the network and the integrations can all review the change, and whether someone will keep the rules current after go-live. A partner is most useful when the environment spans several networks, many integrations or multiple environments that need consistent rules.

Do IP rules replace MFA or access policies in Medplum?

No. IP rules limit where a request can come from, but they do not establish who the user is or what that user may read or change. A user on an approved network with a stolen password can still sign in unless MFA and identity controls are enforced, and a permitted address can still reach records its access policy allows. Medplum supports its own identity provider, external identity providers, client credentials and multi-factor authentication, and those controls should be configured alongside IP rules. Treat IP restriction as one layer that reduces exposure, and confirm the layered design with your security team and auditors.

What should a quote for IP access restriction include?

A quote should state the written scope: the networks and access paths to cover, the environments in scope, the integrations and their egress addresses, and the Medplum deployment model. It should list deliverables such as the rule design, the rule order documentation, the test cases used to prove allowed and blocked access, the rollback procedure and the handover notes. It should separate one-time work from any retainer for reviewing rules when networks change. Ask what is excluded, including firewall or VPN changes made by your network team, Medplum version upgrades, and any policy changes outside IP rules. DeployOpen typically agrees fixed scope and timelines in writing before work starts, and provides a quote that follows from that scope.

What is the main technical risk when enforcing IP allow rules?

The main risk is locking out a legitimate caller, such as an integration, a clinical device or an administrator, because its source address was not in the rule set or changed after a network update. Rule order also matters: a broad block placed above a specific allow can override it, so review each rule in the order Medplum evaluates it. Before enforcement, run each integration and administrator path against the new rules, confirm that failed requests are logged, and keep a tested way to restore access. Confirm the exact evaluation behavior in the Medplum documentation for your version, because this is where configuration mistakes usually appear.

What to confirm in your Medplum version and hosting model

IP restrictions only work if the rule fields, the endpoints they cover and the client addresses they see all match your deployment. The cards below are the points to confirm with Medplum and your own infrastructure team before you write rules that depend on them.

Exact IP rule fields and evaluation

Confirm the field names, accepted address formats (single addresses, CIDR ranges and any wildcard syntax), and how allow and block entries are evaluated in the Medplum version you run. Ask whether the first matching rule wins or whether block rules take precedence, and whether an empty allow list means open access. Test each behavior in a non-production project before you rely on it.

Medplum auth docs

Coverage of sign-in and token endpoints

Find out whether access policy IP rules apply to every endpoint, including the sign-in, OAuth token and OpenID Connect endpoints, or only to FHIR API calls. If sign-in is not covered, a blocked user may still obtain a token from an unapproved network. If sign-in is covered, confirm that your identity provider, Bots and integration agents can still reach the endpoints they need.

Plan differences for this feature

Ask Medplum which hosted plans and the self-hosted Enterprise option include IP access rules, and whether the feature is available on the Community self-hosted option. Plan details change, so confirm the current entitlements on the pricing page and in writing with the vendor before you design around them.

Medplum pricing page

Client address passthrough

Behind a load balancer, ingress controller or NAT gateway, the server may see the proxy address instead of the client. Confirm which forwarded address header the Medplum server trusts, how many proxy hops it expects, and how your AWS, Kubernetes, Ubuntu or Terraform-based Azure or GCP setup forwards it. The Terraform-based Azure and GCP deployments are Beta, so test address handling there with extra care.

Self-hosting docs

Denied requests in audit logs

Confirm whether a request rejected by an IP rule creates an audit event, what fields it records (source address, user, project, requested resource and outcome) and how long those events are kept. Without this record, an investigation of a blocked attempt may depend on proxy or load balancer logs that your team must collect separately.

Upgrade path and rule retention

Self-hosted Medplum must move through each minor version in sequence, so confirm whether IP rules are preserved, changed or migrated across each step. Ask how the upgrade is tested against your rules, and plan a retest of allow and block behavior after every upgrade. Check the current version and support window before scheduling the work.

Upgrading guide

Where IP rules sit in a layered access design

An IP rule is one layer in an access design, and it should never be the only one. In Medplum, the strongest control on who reaches a record is identity: users sign in through Medplum Auth, an external identity provider such as Google, Auth0 or AWS Cognito, or a domain-level corporate identity provider, and multi-factor authentication is enforced for those sign-ins. IP allow and block rules on an access policy narrow where that identity can be used from, such as an on-premises clinic network or a corporate VPN. They do not replace the identity check, and they do not tell you who the person is. Before you write a single rule, confirm which identity provider is authoritative for each user group and how MFA is enforced for it, because reviewers will ask about that layer first.

Machine access needs its own layer. Server-to-server integrations authenticate with client credentials, and those clients are bound to access policies that limit them to the resource types and compartments they need. An IP rule on a client's policy can stop a stolen secret from being used off the integration host, but only if the integration's source addresses are stable and known. Least-privilege policies then decide what an allowed request can read or change, and audit logging records what actually happened. Confirm with your own team whether the audit records you need, including who signed in, which policy applied and which requests were denied, are retained where your compliance function can export them.

Compliance reviewers usually expect each layer to be documented on its own: the identity source and MFA settings, the client inventory with its secret handling, the policy that grants each role its access, the IP ranges and their owners, and the log evidence that the controls operated. Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers. For a self-hosted deployment, the network boundary, the infrastructure controls and the retention of logs sit with your organization, so the IP ranges in your policies should match a network diagram your team maintains. Ask your assessor which evidence they want for each layer before you finalize the design, and treat any statement about how an assessment will turn out as theirs to make, not yours.

How DeployOpen scopes and delivers Medplum IP access controls

DeployOpen plans, builds, tests and hands over IP-based restrictions on a self-hosted Medplum deployment inside your own infrastructure. The work starts from the networks that must reach Medplum, the integrations that must keep working, and the evidence your security and compliance teams need to review the result.

How we scope

  • Inventory the networks, VPN ranges and on-premises devices that need Medplum access before any rule is written.
  • Map each Medplum access policy that will carry an IP rule, along with the users, clients and Bots it applies to.
  • Agree in writing which integrations get exceptions, who approves them and how they are reviewed over time.

How we build

  • Draft allow and block rules on access policies in a staging project, then confirm rule order with test requests from each approved network.
  • Test wildcard blocks and exception paths against integrations, including the Medplum Agent and client applications, before production change.
  • Apply changes through your change process so every rule has an owner, a reason and a documented rollback step.

How we hand over

  • Deliver a written record of each IP rule, its policy, its exceptions and the tests that confirmed its behavior.
  • Provide a runbook for adding networks, granting exceptions and checking denied requests in audit logs.
  • Walk your administrators through the configuration so your team can review and maintain the rules after handover.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and retesting after Medplum version changes are available as a retainer.
  • Confirm with your team which upgrade and retest steps belong in the retainer scope before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.