Data Security — AI Without Leaks

WireGuard for Business: How Remote Employees Access Secure Data Without Cloud APIs

Views: 80 Published: 03.07.2026
🇺🇦 UK 🇺🇸 EN 🇩🇪 DE 🇪🇸 ES
WireGuard for Business: How Remote Employees Access Secure Data Without Cloud APIs

A ban on external APIs is not a ban on remote work. These are different things, and confusing them costs businesses unnecessary restrictions where they shouldn't exist.

⚡ In a Nutshell

  • Core Idea: A VPN tunnel and a call to a cloud AI API are fundamentally different. Banning the latter does not mean banning the former.
  • Corporate VPN ≠ Consumer VPN: It’s not about changing geolocation but about creating a private "corridor" into your internal network.
  • Architecture Without Compromise: Employee → Encrypted Tunnel → Internal Server → Local LLM. Not a single data packet leaves your infrastructure.
  • 🎯 What You Get: Understanding how to combine strict security policies with the real need for remote access—without compromising either.
  • 👇 Below: Detailed explanations, diagrams, and answers to practical questions

📚 Article Contents

Why "No External API" Doesn't Mean "No Remote Access"

Imagine this scenario: your company operates in critical infrastructure, the legal sector, or finance. The security policy is clear – no data leaves your network, no calls to external cloud AI services. This is a logical and justified decision, often enshrined not just by internal regulations but by requirements from regulators or contractual obligations to clients. However, you have employees who work remotely, travel on business trips, are home sick with a laptop at hand, or simply want to check a document in the evening instead of waiting until morning at the office. The question is: does a ban on external APIs mean they are permanently tied to their office chairs?

A Common Misconception

When a company formulates the requirement "no external APIs," a simplified picture often forms in their mind: "everything must stay within the four walls of the office, which means employees must too." This is a logical but flawed conclusion. It arises because both scenarios – "data goes out" and "a person connects from outside" – contain the word "external," and the brain automatically groups them into a single risk category.

In reality, we are talking about two entirely different concepts:

These are independent parameters, and this is precisely where the confusion stems from. The employee's location during connection has no bearing on whether data leaves your infrastructure after connection. It's possible to have a system that never, under any circumstances, accesses any external API – and still grant access to employees from anywhere in the world, if the network perimeter around this system is properly constructed.

The difference is roughly the same as between "who enters the bank building" and "where the bank sends its clients' money." These are two separate security issues, resolved by different tools, and should not be merged into a single requirement.

Public API to a Cloud Service vs. Private Tunnel to Your Own Infrastructure

To definitively resolve the perceived contradiction, it's worth examining both scenarios in detail – what exactly happens to the data in each case.

Calling a Cloud AI API. When a system calls a third-party provider – for example, sending a request to OpenAI or any other cloud AI service – the following happens: a fragment of a document or a user query is packaged into an HTTP request and sent to servers physically owned and managed by that provider. There, the request is processed using their resources, their software, according to rules dictated by the provider, not your company. For a period, the data physically leaves your infrastructure and falls under the jurisdiction and policies of another organization. This scenario, and only this one, is prohibited by strict security policies like "no external APIs."

Employee VPN Tunnel to Your Server. This is fundamentally different. When an employee connects via VPN, there is no call to any third-party data processing service. Instead, an encrypted "corridor" is created between the employee's device and your own server – the very server where documents are stored and the local model runs. All traffic through this corridor goes directly to your infrastructure and back. No third party gains access to the content of this traffic, does not process it, and does not even see it in decrypted form – the VPN provider (unless it's the company's own server) sees at best the connection itself, but not its content.

Therefore, the ban on the first scenario logically does not extend to the second. These are two different directions of data movement:

They are often confused precisely because of the word "external," which intuitively seems the same in both formulations – although technically, they are processes moving in opposite directions. Understanding this difference is the foundation upon which the entire architecture of secure remote access, which we will discuss in the following sections, is built.

What is a VPN and How Does a Corporate VPN Differ from the Usual "VPN for Netflix"?

Most people have heard of VPNs in the context of "watching Netflix US" or "bypassing website geo-restrictions." This is true, but it's only one possible use case for VPNs – and not the one needed by businesses. Confusion between these two scenarios often prevents non-technical executives from understanding why VPNs are considered a solution for strict security requirements – after all, "VPN for Netflix" is associated more with bypassing restrictions than with data protection.

Consumer VPN: Changing Geolocation

When you are in Kyiv and turn on a "US" VPN, your traffic doesn't go directly to the site you're visiting. Instead, it first goes to an intermediate server of the VPN provider somewhere in New York, and only then proceeds to the internet. Any site you visit sees the IP address of this intermediate server – and thinks you are physically located there, not in Kyiv.

The purpose of such a VPN is to hide or replace your real location while browsing the regular public internet. The endpoint of the route is always a publicly accessible site or service that is generally available to anyone in the world. The VPN here acts as a "mask," not a "key to locked doors."

Corporate VPN: A Tunnel into a Closed Network

A Corporate VPN solves a completely different problem. Its purpose is not to hide where you are, but to give you access to places that a regular internet user cannot access at all: the company's internal, closed network, which is generally invisible from the public internet.

There is no "intermediate server in another country" that masks your location. Instead, there is a direct encrypted connection between your device and a specific company server. This server typically doesn't even have a public IP address – meaning it's physically impossible to reach it with a regular internet request, regardless of your browser or location. The only way to get there is to have the correct access key (a certificate or configuration) that the company has issued specifically to you.

Consumer VPN vs. Corporate VPN: A Comparison

Criterion Consumer VPN Corporate VPN
Purpose Hide/replace geolocation Provide access to a closed internal network
Destination Public internet (Google, Netflix, any websites) A specific internal company server
Server Visibility from Outside Not applicable – deals with public websites Server often has no public IP at all – invisible to the regular internet
Who Can Connect Anyone who has paid for a service subscription Only those issued a personal access key
Typical User Private individual Company employee

This table shows the general picture, but within the Corporate VPN category, there is also a choice – particularly between different protocols. If you're interested in a detailed comparison of WireGuard and OpenVPN for business, we've covered it in a separate article.

Analogy: A "Virtual Cable to the Office"

The easiest way to imagine a Corporate VPN is this: you're at home, and you connect a virtual network cable directly into the office network. Your laptop is technically "teleported" inside the office – you see the same internal resources you would normally access sitting at your work desk: internal services, shared folders, and in our case, the AI assistant interface at the internal server address.

At the same time, all your other internet traffic (email, regular websites, social media) does not go through this "cable" – only the traffic destined for the company's internal server. This is called split-tunneling, and it's how Corporate VPNs are usually configured – to avoid overloading the company's internal channel with unnecessary traffic and to prevent slowing down the employee's regular internet browsing.

An important nuance: unlike Consumer VPNs, where the goal is to appear as if you're "somewhere else," with Corporate VPNs, the employee's geolocation is completely irrelevant. Whether from Kyiv or a hotel in another city, the result is the same: a direct, controlled connection to the company's internal server, without any intermediate party processing or viewing the data.

Why Not Just Open the Web Interface to the Internet?

A logical question: if AskYourDocs is a web application, why not simply open a port to the outside and access it through a regular browser? In practice, this creates several serious risks immediately.

A VPN eliminates all these risks at once: the service is simply invisible from the outside. No open port means nothing to scan, brute-force, or attack. Instead of building a defense perimeter around a public application, we remove it from the public space entirely, leaving access only through an encrypted WireGuard tunnel.

Why We Specifically Use WireGuard

We chose WireGuard not out of trendiness, but due to specific technical advantages that directly impact the speed and reliability of accessing AskYourDocs.

A detailed comparison with alternatives is in our separate article: WireGuard vs. OpenVPN: What to Choose for Business.

How Remote Access Fits into the Architecture of a Self-Hosted Solution

Now let's put it all together and see how it looks at the architecture level of a self-hosted AI assistant – not abstractly, but step-by-step, from the moment an employee opens their laptop at home to when they receive a response on their screen.

The Employee's Request Path

👤 Employee at Home laptop / home network 🔒 WireGuard VPN encrypted tunnel 🏢 Internal Network private company network AskYourDocs Ollama pgvector Spring Boot entire stack runs within company network
  1. The employee enables the VPN client on their device (at home, on a business trip – anywhere, location doesn't matter).
  2. An encrypted tunnel is established to the company's internal network – from this moment on, the employee's device is technically "located" inside the office network.
  3. The employee opens their browser and accesses the internal server address (e.g., an internal DNS alias like askyourdocs.internal) – exactly as they would from their workplace in the office.
  4. The request reaches the internal server where the entire system runs – the web interface, the local LLM, the document database. All these components are physically located on one server or within the company's internal network.
  5. The local model processes the request and generates a response without any external calls – document search, vector search, text generation by the model happen locally, without any HTTP requests beyond the perimeter.
  6. The response travels back to the employee through the same encrypted tunnel – the same "corridor" the request came through.

At no point do the data leave the company's perimeter. There is no moment when a fragment of a document or an employee's request ends up on a third-party provider's server – the entire route, from the first to the last step, remains within the network controlled by the company itself.

Why This is Critical for Clients with Strict Requirements

For ordinary businesses, the difference between a "cloud-based" and a "self-hosted" solution often boils down to convenience – slightly longer setup for slightly more control. But for certain industries, it's not a matter of convenience but of compliance with regulatory and internal security requirements, the violation of which has very specific consequences:

Please note: The examples of regulations provided illustrate the general industry context and are not legal advice regarding compliance with your specific situation – exact compliance should be verified with your compliance department or legal counsel.

For such companies, an architecture where "everything stays within the perimeter, access is only through a controlled tunnel" is not an optional extra but a fundamental condition for even considering a solution. This is why the self-hosted approach with VPN access exists not as a compromise between security and convenience, but as a way to achieve both simultaneously: full control over data and full remote access for the team.

PUBLIC INTERNET 👤 Employee at home / on a business trip 🔒 WireGuard encrypted tunnel PRIVATE COMPANY NETWORK (NO CLOUD APIS) 🛡️ VPN Gateway / firewall Internal Server Ollama (LLM) PostgreSQL + pgvector Spring Boot (AskYourDocs) no request leaves the company perimeter

Comparing Remote Access Approaches

The main trade-off companies face is choosing between the convenience of cloud AI services and data control. Here's how the primary options stack up:

Option Data Leaves the Company Remote Access
ChatGPT
Claude
Self-hosted + WireGuard

ChatGPT and Claude are excellent tools but are inherently cloud-based: the query and the document pass through the provider's servers. For companies with a "no cloud APIs" policy, this is unacceptable, even if the provider's model itself is considered reliable. The self-hosted option with AskYourDocs and WireGuard provides the same remote access, but without any data leaving the company's premises.

Who is Responsible for Setup – You or Your IT Department

Deploying such a system is a collaboration between two parties, and a clear division of responsibility is important from the outset.

What the Client Needs

What AskYourDocs Handles

For companies with heightened security requirements, the initial deployment is often conducted as a joint session with the client's IT engineer: the contractor leads the process, and the client's own personnel perform the commands on the server – this way, there's no need to grant external contractors persistent access to the internal network.

What's the Additional Cost and What Influences the Price

It's important to clarify upfront: remote access via VPN is a separate cost item beyond the base cost of deploying the AI assistant, not a hidden part of the standard price. Transparency here is crucial: the client needs to understand exactly what they are paying for.

What Influences the Cost

The exact amount is always calculated individually after a brief discussion about the client's current infrastructure — there is no universal fixed figure here, as too much depends on the starting point of a specific company.


Common Mistakes

Over the years working with clients to set up secure access to internal systems, I regularly see the same mistakes. Almost invariably, they stem not from a lack of knowledge, but from a desire to "do it quickly now and properly later."

From my own experience: give each employee a separate WireGuard key, and include revoking access in the standard onboarding checklist, right alongside returning the laptop and access pass. It takes five minutes but closes one of the most common security vulnerabilities.

❓ Frequently Asked Questions (FAQ)

Will the VPN affect the assistant's performance speed?

A VPN adds a small network latency due to traffic encryption, but in practice, it's usually unnoticeable for regular use. We're talking milliseconds, not seconds. The primary factor for the assistant's response speed is the server's performance where the local model runs (specifically, the presence of a GPU), not the mere fact of using a VPN.

Do I need a separate server for the VPN, or can it be on the same one?

For a small to medium number of employees, a VPN service can certainly be hosted on the same server where the AI assistant runs; the additional load from VPN encryption is minimal. A separate gateway only makes sense with a large number of simultaneous connections or if the company, for security reasons, wants to separate the roles of "data server" and "network entry point."

What happens if an employee leaves – how quickly can access be revoked?

Access via VPN is based on individual keys/configurations for each employee. Revoking access means deleting or deactivating a specific key, which takes literally a minute and does not affect other employees' access. This is one of the arguments in favor of the VPN approach compared to a "shared password" – the company always retains control over each individual access.

✅ Conclusions

If your company operates with strict data security requirements and you need a self-hosted AI assistant with controlled remote access, write to Telegram. We'll discuss your specific situation and the architecture that meets your exact requirements. If you'd like to see how it works first, try the live demo on the homepage.

📖 Read also: