Can Flatpak Apps Reach the Internet Differently When a VPN Is Active?
A sandboxed Flatpak app usually shares the host network, so it follows the same routes as everything else. Here is what can still differ, and how to check calmly.
10 min readUpdated Nov 11, 2026By XPASS Editorial Team

If you run Linux with Flatpak apps, you have probably wondered whether a sandboxed program lives in its own little network world. It is a fair question. The word sandbox suggests walls, and walls sound like something that could keep an app outside your VPN tunnel. In practice, the answer is mostly reassuring but not entirely simple: a Flatpak app that is allowed to use the network normally follows the same routes as every other program on your computer, yet a few details around permissions, DNS, proxies and local services can make one app behave differently from another.
This article explains what the Flatpak sandbox does and does not control, why an app sometimes seems to ignore a VPN, and how to test one app at a time without guessing. It is generic Linux guidance. If you are still installing the VPN itself, start with the Linux VPN setup guide and come back here once the connection works.
What a Flatpak sandbox actually restricts
Flatpak packages an application together with its libraries and runs it in a restricted environment. The restrictions are mainly about what the app can touch on your system: which folders it can read, which devices it can open, which system services it can talk to, and whether it may use the network at all. Each of these is a permission that the packager declares and that you can usually review or change.
The important distinction is this. The network permission in Flatpak is closer to an on and off switch than to a separate virtual network. When an app is granted network access, it generally shares the network of the host. That means it sees the same interfaces, including the tunnel interface your VPN creates, and the kernel picks a path for its packets from the same routing table that every other program uses. When an app is not granted network access, it simply has no network, which is a different problem from "it bypasses the VPN".
So the first mental model is: sandboxed does not mean routed differently. The sandbox decides whether an app may use the network. The routing table decides where the traffic goes. For a refresher on how the routing table makes that decision, see Linux VPN routing tables explained.

Why an app can still seem to ignore the VPN
If the network is shared, why do people report that one Flatpak app behaves differently? Several ordinary reasons exist, and none of them requires a mysterious sandbox escape.
- The app does not use the network the way you assume. Some apps talk to a local helper, a system service or a desktop component instead of opening their own connection. What looks like the app is actually another process, and that process may have its own network behaviour.
- The app has its own proxy or DNS settings. Browsers and some chat or media apps include settings for a proxy or for secure DNS. If one of those is switched on, the app can resolve names or reach sites in a way that does not match the rest of the system.
- The app started before the VPN connected. Long-lived connections that were opened on the normal network may stay open for a while after you connect the VPN. The app is not bypassing anything; it is finishing a connection that began earlier.
- The app caches addresses. An app may remember an address it found earlier and keep using it until the cache expires.
- IPv6 is handled differently. If the VPN setup only carries IPv4 and the app can reach a site over IPv6, part of its traffic may take the ordinary route. This is a general issue, not a Flatpak one.
- Local network access differs. Your printer, a media server or a device on your home network may be reachable or not depending on how the VPN treats local ranges, and the app's own permissions can add another layer.
None of these is guaranteed to apply to your case. They are the usual suspects, and the next sections show how to separate them.
Check the permissions first
Start with the simplest question: is this app allowed to use the network? Flatpak lets you inspect permissions from a terminal. The commands below are examples; the application ID is a placeholder that you replace with the ID of your app, and the exact output varies between versions.
flatpak list --app
flatpak info --show-permissions org.example.App
flatpak override --user --show org.example.App
The first command lists installed apps and their IDs. The second shows the permissions the app ships with. The third shows any overrides you or your desktop tools have set. In the output, look for a line that says the app shares the network. If network sharing is absent or has been removed by an override, the app will not reach the internet at all, and no VPN setting will change that.
Many desktop environments and some separate permission manager tools also show these switches in a graphical window. Use whichever you are comfortable with. The principle is the same: confirm the permission, change one thing, test again, and note what you changed so you can undo it later.
Be careful about giving an app more permissions than it needs just to make a test pass. Granting broad access to your files or devices to solve a networking problem is rarely the right trade. If the network permission is the only thing missing, change only that.
Confirm that the VPN is really connected
Before you blame the sandbox, confirm that the VPN is working for the rest of the system. Open a normal browser outside Flatpak, check your public IP address, and compare it with the address you see when the VPN is off. If the address does not change, the problem is the VPN connection, not the app. The help guide for a connected VPN with no internet walks through that situation, and the general idea of a public address is covered by RFC 791 for those who like primary sources.
Then look at the interface and routes. On most systems you can run ip addr to see whether the tunnel interface exists and ip route to see where the default route points. The details are covered in the routing article linked above, so here it is enough to confirm two things: the tunnel interface is up, and the route for general traffic points at it while the VPN is connected.
If both are true, any normal program with network access will use the tunnel. That includes a Flatpak app that has the network permission.
Test one app against a known reference
Now compare the Flatpak app against a reference you trust. A plain example makes this concrete.
Suppose you use a Flatpak chat client and you want to know whether it appears to come from your VPN address. You open a browser and visit a page that shows your public IP address. Then you look in the chat client for any feature that reveals the connection address, such as a connection log or a network status page. If the chat client has no such feature, you can instead use an app that does display it, such as a Flatpak web browser, and compare it with a browser installed another way.
If the Flatpak browser and the host browser show the same public address, the sandbox is not routing differently. If they differ, check the Flatpak browser for a proxy or secure DNS option before suspecting anything deeper.
Some practical rules for these tests:
- Change one variable at a time. Connect the VPN, test, then change a single setting, then test again.
- Restart the app after connecting the VPN so that old connections are closed.
- Test the same site in both apps, because different sites can resolve to different addresses.
- Write down what you saw. A short note beats memory when you compare results an hour later.
- Treat one test as a clue. A single comparison does not prove that every connection from the app behaves the same way.
DNS, proxies and secure DNS settings
Name lookups deserve their own section because they are the most common reason an app looks different. DNS is the system that turns a name into an address, as described in RFC 1034 and in a friendly form by Cloudflare's explanation of DNS.
In a typical setup, an app asks the system to resolve names, and the system uses the resolver settings it received from the network or from the VPN. A Flatpak app with network access usually follows the same resolver settings, although the way those settings reach the sandbox can vary by distribution and by version. An app can also ignore the system entirely and send its lookups somewhere you chose inside the app, which is what secure DNS options in browsers do.
That is not a bug. It is a setting, and it means the app can be using a different resolver from the VPN. If you want one consistent behaviour, review the app's secure DNS option and decide deliberately. For a deeper look at checking lookups on Linux, read the article on Linux VPN DNS leaks, which explains how to tell where lookups go.
Proxy settings behave similarly. Some apps follow a desktop-wide proxy setting, others have their own, and some have none. If you configured a proxy once and forgot about it, a Flatpak app that honours it will send traffic to that proxy first, whether or not the VPN is connected. Check the proxy setting of the desktop and of the app before concluding that the VPN has failed.

Local services, portals and things that look like network problems
Flatpak apps often talk to the desktop through services called portals, which let the sandbox ask for things like opening a file chooser, reporting connectivity or opening a link in your default browser. A link clicked inside a Flatpak app may open in a browser outside the sandbox, and that browser is a different program with its own settings. If you see a page load differently after clicking a link, the browser that opened it may be the reason, not the app.
Local network access is another common point. A VPN configuration can send all traffic into the tunnel, including requests meant for the printer or media box on your home network, so a device that worked a minute ago may disappear. The same device may also be reachable from a command-line tool but not from an app because the app expects a discovery method such as broadcast, which does not always cross a tunnel. These are routing and discovery questions, not sandbox ones, and the routing article above helps you check them.
Finally, remember that some apps simply need an internet connection to be steady before they start. If an app was launched during a Wi-Fi change or right as the VPN connected, quit it fully and start it again before you test.
Limits and what to watch for
A VPN is a tool for sending your network traffic through an encrypted connection to a VPN server. It does not make an app private by itself, and it does not guarantee anonymity, access to every site or protection from every risk. Several limits are worth keeping in mind for the Flatpak case.
- A VPN cannot see inside an app. If an app sends your account name or device identifiers to the service, the VPN does not remove them.
- Logging in to an account ties activity to that account, whatever the IP address.
- A sandbox is a safety measure for files and devices; it is not a privacy tool for network traffic, and it does not stop an app that has network access from contacting the internet.
- If the VPN drops, an app may continue on the ordinary connection. The Linux VPN kill switch article explains the idea and its limits, and you should read it if you rely on the tunnel for sensitive work.
- Behaviour differs between desktop environments, distribution versions and Flatpak releases. Treat any command in this article as an example that you may need to adapt, and consult your distribution's documentation when output differs.
If you need an app to stay off the tunnel, or to be the only app on it, that is a split tunnelling question and depends on features of the VPN client in use. Do not assume a Flatpak permission can do this for you; it controls whether the network is available, not which path it takes.
A calm checklist
When one Flatpak app seems to behave differently from the rest of your system, work through this list in order.
- Confirm the VPN is connected using a browser outside Flatpak.
- Check that the tunnel interface is up and the default route points at it.
- Check the app has the network permission, and add only that if it is missing.
- Quit the app fully and start it again after the VPN connects.
- Look for a proxy or secure DNS setting inside the app, and compare it with the system.
- Compare the app with another app that shows your public address.
- Test with a different server location, then with the VPN off, to see which change makes a difference.
- If the result is still unclear, note what you tried and contact support with those notes.
The sequence matters because it moves from the largest cause to the smallest. Most issues end at step 1, 2 or 3.
Summary
A Flatpak app that is allowed to use the network normally shares the host network, so it follows the same routes as other programs and uses the VPN tunnel like any of them. When one app looks different, the usual causes are a missing network permission, an app-level proxy or secure DNS setting, connections that began before the VPN, IPv6, or a link that opened in a different program. Check permissions, confirm the VPN, test one app against a known reference and change one thing at a time. If you would like to try this on your own machine with a prepaid pass, you can look at the options on the XPASS pricing page.
Frequently asked questions
Does a Flatpak app bypass my VPN because it is sandboxed?
Not by default. A Flatpak app that is allowed network access normally shares the host network, so it uses the same routes as other programs. The sandbox mostly limits files, devices and system services, not the path of packets.
Why does one Flatpak app have no internet at all?
The app may not have been granted the network permission. Without it, the sandbox gives the app no network, with or without a VPN. Check the app permissions and the app's own proxy or DNS settings.
Can a Flatpak app use different DNS from the rest of my system?
Usually it uses the host resolver settings. However, an app can have its own secure DNS setting or proxy, and that setting can differ from the system. Look inside the app preferences if one app behaves differently.
How do I check whether a Flatpak app uses the VPN?
Compare what the app reports with what a browser reports for your public IP address, check the app permissions, and watch the routing table while the app connects. Treat one test as a clue, not a guarantee.
Should I install Flatpak apps differently when I use a VPN?
No special install is needed. Connect the VPN the usual way, then test the app. If a problem appears, change one thing at a time and keep notes of what you changed.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Device Guides
Linux VPN Routing Tables Explained
A VPN on Linux is mostly a set of routing decisions. Learn to read ip route, understand the half-default trick and policy tables, and diagnose why traffic goes the wrong way.
9 min read

Device Guides
How to Test and Fix DNS Leaks on Linux
Linux has several layers that decide where DNS questions go. Learn to test which one is answering while your VPN is up, and how to fix it on systemd-resolved, NetworkManager and plain resolv.conf.
9 min read

Device Guides
How to Configure a Linux VPN Kill Switch
On Linux a kill switch is a firewall rule, not a button. Three ways to build one, what traffic must still be allowed, and a safe test routine.
10 min read