Self-hosted Odoo in restricted or air-gapped networks

A firewalled Odoo server still needs a short list of outbound paths. This page explains which ones, what stops working without them, and how to plan the gaps.

On this page

Running self-hosted Odoo in a restricted or air-gapped network

A self-hosted Odoo server can run behind a firewall, but some features and upgrade paths depend on outbound connections or vendor-hosted services, so the egress rules must be designed with the application, not added after it. The reader's first decision is which edition the organization needs. Odoo offers a fully open source Community edition under LGPL-3.0 and a paid Enterprise edition with additional features and support. The Enterprise source code is not publicly available and requires a subscription or partner access. For on-premise Enterprise, the database is activated by entering a subscription code, so the activation step and its network requirements belong in the plan from day one.

Licensing also shapes the hosting model. Odoo's pricing page lists on-premise hosting only under the Custom plan, and only that plan includes multi-company, Odoo Studio, external API access and custom modules. An organization that expects to run custom modules or API integrations inside a closed network should confirm the plan and its inclusions in writing before design begins. Ask the vendor which features are available on your chosen edition and plan, and whether any of them require a service that reaches the internet.

Several items on this page depend on outbound or vendor-hosted services that a default-deny firewall will block. Examples include the upgrade script that reaches the upgrade service, in-app purchase services such as SMS and document digitization that consume prepaid credits, and bank, payment and shipping connections. Treat each of these as a named requirement in the design, with an owner, an allowed destination and a decision on whether the feature is needed at all. The sections that follow set out each dependency in turn.

Which outbound paths a firewalled Odoo server still needs

A firewalled Odoo server can stay closed to most of the internet, but a few outbound paths still matter. Each one has a different owner, a different failure mode and a different way to confirm it before go-live. Plan them as a list of named destinations rather than a single open rule.

Upgrade service script over port 443

The on-premise upgrade script that calls upgrade.odoo.com needs outbound TCP port 443 and a high port range. Without it, the upgrade service cannot be reached from the server, so a major version move has to be planned as a separate transfer. Confirm the exact port range for your installed version in Odoo's upgrade documentation, and check whether your firewall inspects or blocks this traffic by default.

Odoo upgrade docs

IAP services for SMS and OCR

In-app purchase services such as SMS and document digitization run as online services that consume prepaid credits. The Odoo server calls them outbound, so a closed network disables those features even when the database itself is healthy. Decide which IAP features the business needs, buy credits through the appropriate channel, and test each feature from inside the restricted segment.

IAP documentation

Bank synchronization

Bank feeds reach the bank or an aggregator from the Odoo server, so this is a separate egress path with its own hosts and ports. It is also a sensitive connection because it carries account data. Ask each bank connector provider which endpoints it calls, whether traffic goes through a proxy, and how credentials are stored. Record the answers before the firewall rule is written.

Payment provider APIs

Online payment acquirers receive outbound calls from the server, and some also send callbacks back to it. Payment flows therefore need both an egress rule and an inbound path that the firewall allows. Confirm the hosts and ports with each provider and the Odoo documentation for the installed version. Note the scope effect on card data handling, since the design determines which systems touch payment details.

Shipping carrier APIs

Shipping connectors request rates, labels and tracking from carrier APIs over outbound connections. A label request that fails at the firewall usually shows up as a warehouse delay, not a clear error. List every carrier the business uses, confirm its endpoints with the carrier and the connector, and test label creation and tracking from the restricted segment before go-live.

Default-deny outbound and an egress list

Odoo's guidance favors a default-deny outbound posture, so each path above becomes a written exception with an owner, a destination, a port and a reason. Keep the list with the change record and review it at every upgrade, since new IAP services, connectors or version changes can add destinations. Anything not on the list should fail closed, and the failure should be tested rather than assumed.

What stops working when the outbound paths are blocked

Blocking outbound traffic removes a set of online services from Odoo, but it does not stop the core application. The local database, the accounting, inventory and other apps keep working on the server, because they run against PostgreSQL inside your network. What you lose are the functions that call a vendor's cloud service: the upgrade service, in-app purchase (IAP) services such as SMS and document digitization (OCR), bank synchronization, online payment acquirers and carrier rate or label APIs. Each one fails in its own way, so the affected list should be built from the modules you actually enable, not from a general assumption.

Upgrades deserve the first check. The upgrade service is reached through the upgrade.odoo.com script, which needs outbound TCP port 443 and a high port range, and it is available for on-premise use only with an Enterprise subscription. If the server cannot reach it, the migration has to be run from a machine that can, or planned as a separate transfer, and that path should be rehearsed on a test copy before any production date is set. IAP services consume prepaid credits from an online service, so SMS and document digitization stop until a connected path exists. Confirm with the vendor and your own environment which of these features your users rely on before you decide what to allow through.

Odoo's advice to default-deny outbound traffic means every allowed destination should be a deliberate decision, recorded with its owner, port and purpose. Bank feeds, payment gateways and carrier APIs are separate endpoints, and some are reached through connector modules that may need their own packages. Ask each vendor for the exact hostnames and ports, test them from the server's own network segment, and review the list whenever you enable a new feature or upgrade. Treat any package or connector carried across the boundary as software that needs an integrity check before it is installed.

Choosing offline patterns: allowlisted egress, proxy or fully isolated

A firewall with a narrow allowlist keeps a direct route from the Odoo server to a short list of destinations and blocks everything else. For Odoo, the main allowlisted need named in the supplied facts is the upgrade service script, which starts on-premise upgrades and needs outbound TCP port 443 and a high port range. Everything else the server reaches should be listed by name, reviewed and logged, so that each rule has an owner and a reason.

  • Package sources: Decide whether operating system and Python packages come from a direct allowlisted mirror or from an internal mirror that your team refreshes.
  • Upgrade script traffic: Allow the upgrade service path only during planned upgrade windows if your policy permits that, and record each opening.
  • IAP and payment services: Each online service needs its own rule. Confirm the exact hostnames and ports with Odoo, because the supplied facts do not list them.
  • Credit handling: IAP services consume prepaid credits, so someone must own top-ups and check that the account has credit before a process depends on it.
  • Control trade-off: This pattern keeps the most features, but the allowlist drifts over time, so schedule reviews of every open destination.

Before you approve this pattern, ask Odoo and your firewall team to list every hostname and port the server needs for the features you plan to use.

Configuration options and when each fits

This table compares the main ways to run a restricted Odoo server, from allowing the upgrade script outbound to running fully isolated with packaged installers. Read each row for what keeps working, what it costs in control or features, and the situations where it fits. The main takeaway is that the more isolated the server, the more upgrade, IAP and connector work moves to a staging or DMZ process that someone must own.

OptionWhat it keeps workingWhat it costs in control or featuresWhen it fits
Allow upgrade script egressUpgrade service runs directly from the production network on outbound TCP 443 and a high port rangeProduction server reaches an external Odoo endpoint, which the security team must approve and logConnected production with a standing exception for upgrades only, and Enterprise on-premise access
Stage upgrades on a connected build hostUpgraded test database is built outside production, then reviewed before transferExtra host, extra copy of data, and a transfer process that must be auditedIsolated production that still needs regular major version upgrades
Disable or replace IAP-dependent featuresCore accounting, sales and inventory flows that do not call online servicesSMS, document digitization and other prepaid online services stop, so manual or local alternatives are neededTeams that do not depend on SMS or OCR, or can replace them with internal tools
Bank and payment connectors from an approved DMZBank synchronization and payment APIs through a controlled relay hostExtra network segment to build and monitor, and credentials held outside the core serverOrganizations that need live bank feeds or card payments but must keep the database isolated
Fully isolated with packaged installersOdoo runs with no outbound path, using installers and dependencies carried in by reviewed mediaNo automatic upgrade script, no online services, and each package must be checked before importHighest assurance requirements where the security team accepts manual patch and upgrade work
Community edition without upgrade serviceOdoo Community runs locally with no subscription activationCommunity has no access to the upgrade service, so upgrades use other tooling and more testingConfirm licensing and cost needs with your team before choosing Community for regulated workloads

How to plan the air-gapped build in sequence

This sequence turns a vague wish for an isolated Odoo server into a written inventory of every outbound need, a decided upgrade route and a set of tests that prove the blocked paths stay blocked. Each step produces a document or check that the next step depends on.

  1. Inventory every feature and integration

    List every Odoo app, module, scheduled action and integration the deployment will use, including Enterprise apps, custom modules, payment and shipping connectors, bank feeds, SMS, OCR and any AI or document service. The owner is the project lead with the business process owners, and the output is one register with a row per feature. You know it is done when every row names the business owner and whether the feature runs inside the network or depends on an online service.

  2. Map each feature to its outbound destination

    For each row in the register, identify the hostnames, ports and protocols the feature contacts, and write down what happens when that path is blocked. Include the upgrade script, in-app purchase services that consume prepaid credits, bank synchronization and payment or shipping APIs. The network or security team reviews the map against its egress policy. The check is a signed map in which every outbound path is either allowed with a named owner or marked as unavailable with a documented fallback.

  3. Decide the upgrade route

    Choose how future Odoo versions will reach this server, because the upgrade service needs outbound TCP port 443 and a high port range and is only available with an Enterprise subscription. Record whether upgrades will run through a temporary allowed window, a transfer of the upgrade files through an approved path, or a separate staging environment that has connectivity. Confirm the support windows and the requirement that Online and Odoo.sh major versions are mandatory every two years against the version you plan to run. The check is a written upgrade decision that names the version, the owner and the date the next upgrade will be planned.

  4. Decide on database duplication and neutralization

    Decide whether test and training environments will be created by duplicating the production database and neutralizing the copy, which Odoo documents for test copies. Neutralization matters in a restricted network because a copy can still trigger scheduled actions, outgoing mail or connector calls that reach systems you did not intend to touch. Assign who approves each copy and where it runs. The check is a documented copy procedure and a test confirming that the neutralized copy sends no mail and calls no external endpoint.

  5. Build or transfer packages through an approved path

    Collect the Odoo source or packaged installers, the Python dependencies, PostgreSQL and any OS packages through a controlled transfer process, and scan each artifact for integrity and provenance before it crosses the boundary. Keep a manifest with versions and checksums so the build can be reproduced. Record who approved each transfer. The check is a manifest that matches the artifacts installed on the server, with the approval record attached to it.

  6. Activate the Enterprise subscription code if used

    If the deployment uses Enterprise, enter the subscription code on the on-premise server so the Enterprise databases are activated, and confirm the subscription covers the upgrade service you planned in step three. Store the code in your secrets process rather than in plain configuration files. The check is an activated database that shows the expected Enterprise apps and a recorded entry in your subscription inventory.

  7. Verify the blocked paths with test cases

    Write one test per outbound path in the map from step two. Each test attempts the connection from the Odoo host and from the worker processes, and expects the block to hold or the documented fallback to run. Include a check that the upgrade script fails cleanly when port 443 is closed and that IAP-dependent features show a clear error rather than hanging. Run the tests after every build and after every firewall change. The check is a passing test report with the date, the firewall rule set version and the tester's name.

How to verify packages carried across an isolated boundary

Every package, image and upgrade artifact that crosses into an isolated network needs its own integrity and authenticity check before it is installed. The transfer medium is usually the weak point: a file can be altered or substituted between the internet-connected staging host and the enclave, and the enclave has no live connection to confirm what it received. NERC CIP-013-2 addresses this in general terms, requiring supply chain procurement processes to cover verification of software integrity and authenticity for vendor software and patches. Treat that as the principle, then write the concrete steps into your own change procedure, so each release crossing the boundary is checked the same way and the check is recorded.

For a self-hosted Odoo estate, the artifacts to check include the Odoo packages or source archive for the chosen release, any Enterprise packages, the Python and system dependencies you mirror, the wkhtmltopdf build, and the upgrade script and archives if you use the upgrade service. Odoo documents packaged installers and source installation for on-premise use, so start from the vendor's release channel and compare the checksums or signatures it publishes against what your staging host downloaded. Record the hash of every file in the transfer manifest, then recompute those hashes on the enclave side before anything is unpacked. Confirm with Odoo which verification method applies to the release you are deploying, because publication practices can differ between packages, source archives and installers.

Decide early who owns the staging host, who signs off on each transfer, and how a failed check is handled. A mismatch should stop the transfer, not trigger a manual override, and the incident should go into the same record as the change. Ask your vendor and your own security team to agree on what evidence is kept for audit, such as the manifest, the hashes, the approver and the date. Re-run the check on any artifact that is copied again inside the enclave, because each extra hop is another point where a file can change.

Security and operational considerations for the enclave

An enclave holds Odoo, its database and every secret it needs, so the controls that matter sit around that core: what gets carried in, how sign-in works without outside identity services, what gets blocked and logged, and how anyone gets in remotely. Each card below is a decision your security and operations teams should make before the first production copy goes live.

Package and dependency drift

Every add-on, wheel, wkhtmltopdf build and Python dependency that crosses the boundary is a versioned artifact that someone must approve. Without a recorded manifest, a server can drift from its tested state after one emergency patch. Keep a hash-checked inventory for each transfer, rebuild from it rather than patching in place, and confirm which Enterprise and Community code paths you are carrying. Confirm how your upgrade plan handles Odoo's supported-version windows.

Standard support window
3 years
Support policy docs

Bank and payment API credentials

Bank synchronization, payment and shipping connectors need API keys and certificates that must be stored inside the boundary. Decide where secrets live, who can read them through Odoo's admin screens and the database, and how they are rotated when a provider changes its requirements. Because these connectors can only reach their providers through approved egress paths, document each path and its credential owner so that a credential is never copied to a laptop for troubleshooting.

LDAP and two-factor sign-in offline

Odoo documents LDAP sign-in, with optional user creation on first login from a template, and two-factor authentication for accounts. Those controls depend on a directory server inside the enclave, not on a cloud identity provider. Confirm that your directory, certificate authority and time source are reachable from the Odoo server, that the two-factor method works without internet access, and that a documented break-glass account exists with its own storage and review.

LDAP sign-in docs

Logging blocked connections

Default-deny egress is only useful if the denied attempts are visible. Log at the firewall and the Odoo server, record the source process and destination, and forward both to a log system inside the boundary. Review the logs for connection attempts from IAP, upgrade or update services that were never approved, because a silent failure can hide a feature that stopped working or a process that is calling out. Confirm your retention period with the team that owns the logs.

Remote access path

Vendor and administrator access to an isolated Odoo server is a security boundary in its own right. Route interactive access through one intermediate host that enforces encryption and multi-factor authentication, keep session recording on, and provide a documented way to end active sessions quickly. Energy sector organizations face a comparable requirement in NERC CIP-005-7, which describes an intermediate system and multi-factor controls for remote access to high and medium impact systems. Other sectors should map their own obligations to the same design.

CIP-005-7 text

Patch and release tracking

Enclave servers do not receive updates automatically, so someone must watch Odoo's release and support calendar and the security notices for each component. Assign an owner for each source, define how a security fix enters the boundary through the same verified channel as other packages, and schedule a staging rebuild before each production change. Record each decision so that a later audit can trace which build ran on which date.

Questions buyers ask about air-gapped Odoo

Can Odoo run with no internet access at all?

Yes, the core Odoo application can run on a server that has no general internet access, but it is not fully isolated by default. The on-premise upgrade service started with the upgrade.odoo.com script needs outbound TCP port 443 and a high port range, so that path must be allowed or handled as a separate, controlled transfer. In-app purchase services such as SMS and document digitization are online services that consume prepaid credits, so they stop working without a route out. Bank synchronization, payment gateways and shipping APIs also depend on outbound connections. Confirm each of these against your own network policy before you promise the business a fully offline system, and read the Odoo upgrade documentation for the current upgrade requirements.

Which Odoo features stop working on a firewalled server?

The features that stop working are the ones that call an external service at runtime. Expect the following to need a deliberate decision:

  • In-app purchase services such as SMS and document digitization, which are sold as credits and run online
  • The upgrade service script, which needs outbound access for major version moves
  • Bank synchronization, payment provider connectors and shipping carrier APIs
  • Any app or module that fetches updates, translations or exchange rates from a remote source

For each one, decide whether to allow a narrow outbound rule, replace the function with an internal alternative, or accept that it is unavailable. That decision belongs in the written scope, not in a late surprise during testing.

How much does an air-gapped Odoo build cost?

No price is published for this work, and DeployOpen does not publish a price list. The cost follows from the written scope and is driven mainly by the number of integrations that need an offline route, the number of Odoo apps and custom modules, the amount of data to migrate, and the number of environments that must be built and kept in step. Licensing is a separate line: Odoo's pricing page says only the Custom plan can be hosted on Odoo.sh or on-premise, and on-premise use of the upgrade service requires an Enterprise subscription. When you ask for a quote, request separate line items for the build, each integration replacement, the offline update process, and any recurring upgrade or support retainer, and state which items are one-time and which recur.

How long does planning and building an air-gapped Odoo take?

The duration depends on the scope, so no fixed timeline is given here. The main drivers are how many integrations need an offline alternative, how much your processes need to be mapped before the build starts, how complex the data migration is, and how quickly your security and compliance reviewers can approve the transfer method for packages and images. Ask a partner for a phased plan that separates process mapping, build, testing with a copied database, and go-live, and ask which of those phases depends on decisions from your own teams.

What does our team need to provide for an air-gapped Odoo project?

Your team needs to provide decisions and access, not only servers. Typical inputs include a named business owner for each Odoo app in scope, the list of integrations with the systems they connect to, a decision on which external services stay offline, and the approved route for moving software, packages and container images into the isolated network. You will also need a process for importing those artifacts, a staging environment with its own database, and a person who can approve the database copy used for testing. Confirm with the partner which of these items they will document and which your team owns.

Can our own team run an air-gapped Odoo system without a partner?

Yes, a capable internal team can build and run it, provided it has Linux, PostgreSQL and Odoo administration skills and an agreed way to bring updates across the isolation boundary. The hard parts are usually not the install itself. They are the controlled transfer of every package and image, verifying their integrity before they enter the network, keeping test and production in step, and planning major version upgrades that come around on a fixed cycle. Compare your team's capacity for those tasks against a fixed-scope engagement, and ask any partner to state what they will hand over and document.

How do upgrades work on an offline Odoo server?

Upgrades need a planned route, because the Odoo upgrade service moves a database to a newer supported version through an upgraded test database that you should test before production. On-premise use of that service requires an Enterprise subscription, and Community has no access to it. Odoo standard support covers the first three years after a major release, and major version upgrades are mandatory every two years on Odoo Online and Odoo.sh according to the upgrade documentation. Plan the upgrade route, the transfer of each package and the test copy from the start, and check the current support window for your version in Odoo's standard and extended support documentation.

Official sources to read before you decide

Read the Odoo upgrade documentation and the in-app purchase documentation before you settle the network design, because they decide which outbound destinations your firewall must allow and which features stop working without them. The upgrade page explains how the upgrade service moves a database to a newer supported version through an upgraded test database, and it names the on-premise requirements for using that service. Start with Odoo 19.0 docs: Upgrade and check that the version you run matches the documentation you read.

The in-app purchase page covers SMS, document digitization and other online services that consume prepaid credits. Those services are where a restricted network is most likely to break a workflow quietly, so read it alongside your list of enabled apps. Use Odoo 19.0 docs: In-app purchases (IAP) to identify each service your users depend on, then ask your Odoo contact which destinations each one contacts. Do not treat the documentation for one release as the list for another, since destinations can change between versions.

Treat the exact list of destinations as something to confirm from the vendor documentation for the release you run, and record the answer in your change record. Ask for each host, port and protocol, and whether the traffic is needed at install time, at upgrade time or during daily use. Have your security team approve each entry and set a review date tied to your planned upgrade window, so the allow list does not drift as the platform moves forward.

How DeployOpen scopes and delivers an offline Odoo deployment

DeployOpen plans, builds, documents and supports self-hosted Odoo inside your own infrastructure, including networks that cannot reach the internet. We start by listing every outbound dependency your Odoo servers have, then agree on how each one is met inside the boundary before any installation begins.

How we scope

  • Inventory every Odoo app, add-on and service your users rely on, and mark which ones need outside connectivity.
  • Confirm the Community or Enterprise edition, the subscription status and the Odoo version your team will run.
  • Agree the written scope, deliverables and timeline in writing before work starts, with optional retainer support afterwards.

How we build

  • Design the offline upgrade path, including how packages, images and upgrade-service data are staged across the boundary.
  • Build the server stack in your environment and test restores, upgrades and disabled-service behavior against a staging copy.
  • Verify each transferred package and image against your supply chain controls before it enters the isolated network.

How we hand over

  • Deliver configuration records, network flow documentation and a list of features that stop working without outside access.
  • Document the transfer procedure, upgrade runbook and rollback steps so your own staff can repeat them.
  • Walk your operations and security teams through the build so they can review it against your internal controls.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, sized to your written scope.
  • Retest the environment after each Odoo update, add-on change or change to the network boundary.
  • Keep the dependency inventory current so new features or services are reviewed before they reach users.

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.