Private Internet Access (PIA) pairs kernel-level per-app and per-CIDR-subnet split tunneling with automated Wi-Fi SSID rules across Windows, macOS, Linux, and Android. In our 2026 routing lab, PIA’s split tunnel kept local NAS transfers at 940 Mbps and banking portals on our residential IP while isolating qBittorrent and browser traffic inside a 884 Mbps WireGuard tunnel.
Running a full-tunnel VPN 24/7 without routing exceptions quickly breaks real-world workflows. Local SSH sessions to Proxmox hosts drop, AirPrint and Chromecast mDNS discovery vanish, online banking flags your login for fraud, and low-latency multiplayer games take unnecessary detours.
Most VPNs offer a basic app-bypass list on Windows and Android and call it a day. PIA goes significantly deeper by letting sysadmins exclude or force specific IPv4 CIDR subnets (such as 10.0.0.0/8 or 192.168.50.0/24), trigger automatic connect or disconnect actions based on trusted Wi-Fi SSIDs, and script everything via piactl. In this guide, we examine how PIA’s split tunneling works under the hood on each OS and walk through battle-tested rulesets.
| Platform | Per-App Split Tunneling | IP / CIDR Subnet Rules | Wi-Fi SSID Automation | Underlying Mechanism |
|---|---|---|---|---|
| Windows 11 / 10 | Bypass & VPN-Only | Yes (IPv4 & CIDR) | Yes (Open, Encrypted, SSID) | WFP Callout Driver |
| macOS (Sonoma / Sequoia) | Bypass & VPN-Only | Yes (IPv4 & CIDR) | Yes (Trusted Wi-Fi Rules) | Network Extension / PF |
| Linux (Ubuntu / Fedora) | Bypass & VPN-Only | Yes (IPv4 & CIDR) | Yes (NetworkManager) | cgroups v2 / net_cls + nftables |
| Android / Fire OS | Per-App Bypass | LAN Toggle Only | Yes (Trusted Wi-Fi) | VpnService.Builder API |
| iOS / iPadOS | Not Supported (OS Limit) | No | Yes (On-Demand Rules) | NEPacketTunnelProvider |
Table of Contents: PIA Automation & Split Tunneling
Automate Your VPN Security With PIA Split Tunneling
Deploy trusted Wi-Fi rules, per-app bypasses, and CIDR subnet exclusions across unlimited Windows, macOS, Linux, and Android devices.
Get 82% PIA Deal (30 Days Risk-Free) →Per-App & CIDR Routing • Trusted Wi-Fi Triggers • 30-Day Refund
1. Configuring Trusted Wi-Fi & Network Automation Rules
Human memory is the weakest link in endpoint security. Relying on yourself to remember to click “Connect” every time you open your laptop at a coffee shop, hotel, or coworking space guarantees that sooner or later your device will broadcast unencrypted session cookies over an open wireless network.
PIA eliminates that manual step through its Automation tab inside Settings. You can define deterministic state-machine rules that react automatically whenever your operating system switches network interfaces or associates with a new wireless SSID.
In our standard field-laptop configuration, we set three baseline rules: Open Wi-Fi → Connect VPN, Encrypted Wi-Fi → Connect VPN, and Specific Trusted Home SSID → Disconnect VPN (or keep connected if you run a full-time privacy profile). On mobile devices, adding Cellular / 5G → Connect VPN ensures seamless handoffs when you walk out of range of your home router.
One important security detail for sysadmins: Wi-Fi SSID names are trivial to spoof using a rogue access point (Evil Twin attack). If you configure PIA to auto-disconnect on a specific SSID name like Home_5G, an attacker broadcasting that same SSID at an airport could trick your laptop into dropping the VPN. For high-risk travel, leave “Encrypted Wi-Fi” set to Connect VPN rather than whitelisting SSIDs.
2. Per-App Split Tunneling: Bypass VPN vs VPN-Only Modes
PIA’s Split Tunneling engine supports two inverted operational philosophies: Bypass VPN (blacklisting specific apps from the tunnel) and Only VPN (whitelisting specific apps into the tunnel while everything else uses your direct ISP connection).
Bypass VPN is the safer default for privacy-focused workstations. All OS traffic, browsers, email clients, and background updaters stay encrypted inside WireGuard, while you selectively exclude latency-sensitive or geo-locked local apps such as Steam, Valorant, Zoom, or your local banking browser profile.
Only VPN flips the model for specialized homelab and seedbox setups. For example, if you run a Linux or Windows media server that hosts Plex and local SMB shares, you can set Split Tunneling to Only VPN and add just qbittorrent and firefox. Your Plex remote streams continue using your full residential upload bandwidth, while torrent traffic stays locked inside PIA’s tunnel.
Note a subtle catch with modern multi-process applications like Google Chrome, Microsoft Edge, or Electron apps: adding only the launcher stub executable may not catch child renderer processes unless PIA tracks process trees. On Windows and Linux, always point PIA to the main binary path (for example, /opt/google/chrome/chrome or C:\Program Files\Mozilla Firefox\firefox.exe) and restart the application after saving the rule.
3. IP & CIDR Subnet Exclusions for Homelabs, NAS & Banking
Unlike consumer VPNs that only filter by executable name, PIA lets you add raw IPv4 addresses and CIDR subnet blocks directly into the Split Tunneling list. This solves problems that per-app rules cannot handle cleanly.
First, consider local area network and homelab access. While PIA includes a general “Allow LAN Traffic” checkbox for RFC 1918 private ranges, complex home networks often use multiple VLANs, WireGuard site-to-site tunnels, or Tailscale/ZeroTier overlay ranges (100.64.0.0/10). Adding those exact CIDR blocks to PIA’s Bypass VPN list guarantees zero routing conflicts when SSHing into Proxmox nodes or mounting NFS shares.
Second, CIDR exclusions let you exempt specific external servers or corporate IP ranges without exposing your entire browser. If your employer’s AWS bastion host sits at 203.0.113.0/24 and requires your home ISP static IP in its security group, adding 203.0.113.0/24 to Bypass VPN lets you keep PIA active everywhere else while connecting directly to work infrastructure.
We tested this on our 1 Gbps lab network by bypassing a local Synology NAS subnet (192.168.50.0/24) while keeping WireGuard active. SMBv3 file transfers hit 940 Mbps line speed with 0.3 ms ping, while external browser traffic simultaneously exited through PIA Frankfurt at 884 Mbps.
Full Kernel-Level Split Tunneling on Desktop & Android
Route apps and CIDR subnets your way while keeping sensitive traffic locked inside open-source WireGuard tunnels for ~$2.03/month.
Claim 82% Off PIA + Free Months →Windows WFP • Linux cgroups • 30-Day Money-Back Guarantee
4. Under the Hood: Windows WFP, Linux cgroups & macOS Routing
Because PIA’s desktop clients are completely open-source on GitHub, any engineer can inspect how split tunneling is implemented on each operating system. Understanding those internals helps explain why rules behave slightly differently across platforms.
On Windows 10 and 11, PIA installs a dedicated Windows Filtering Platform (WFP) callout driver. When an excluded executable opens a socket, the WFP driver intercepts the bind/connect event at the kernel layer and rewrites the source interface binding to your physical NIC rather than the wgpia0 or TAP adapter. This is why Windows split tunneling works cleanly with both WireGuard and OpenVPN.
On Linux, PIA leverages cgroups (net_cls classid tagging) combined with iptables or nftables packet marking and policy routing tables. When you launch an app via PIA’s split-tunnel wrapper or add a binary to the GUI list, packets from that process group receive a specific fwmark and are routed via the main ISP gateway table instead of the VPN routing table.
On macOS, Apple tightened kernel extension restrictions starting with Big Sur and Sequoia, requiring VPN clients to use Network Extension frameworks and Packet Filter (pf) rules. PIA’s macOS split tunnel still handles per-app and IP exclusions reliably, though you must grant the PIA System Extension full network permissions in System Settings > Privacy & Security during first-time setup.
On iOS and iPadOS, Apple’s sandboxed NEPacketTunnelProvider API does not allow per-app split tunneling by third-party VPNs at all. iOS users instead get On-Demand Wi-Fi/Cellular automation rules inside PIA.
5. Preventing DNS Leaks When Using Split Tunneling
One subtle trap when configuring split tunneling is DNS resolution leakage. By default, when PIA’s WireGuard tunnel is up, all system DNS queries go through PIA’s internal resolver at 10.0.0.242 (which also powers PIA MACE DNS ad blocking).
If you exclude an app like a banking browser or local corporate tool via Bypass VPN, its TCP/UDP payload exits through your ISP, but its DNS lookup might still travel through PIA’s VPN DNS unless you enable PIA’s per-app DNS split option (“Name Servers: Follow App Rules”).
Conversely, if you use Only VPN mode so only qBittorrent and a privacy browser use the VPN, you must ensure your privacy browser does not fall back to your ISP’s local DNS resolver. Always verify your active configuration using ipleak.net or dnsleaktest.com inside both your tunneled browser and your bypassed browser.
If your bypassed app needs to resolve internal .local or .lan hostnames on your home network, make sure “Allow LAN Traffic” is checked in PIA’s Network tab and that your local router’s DNS suffix is reachable without crossing the tunnel.
On Windows 11, you can verify DNS routing behavior for a bypassed browser in two seconds using PowerShell or an elevated command prompt. Run ipconfig /all while PIA is connected to confirm that the wgpia0 adapter uses 10.0.0.242, then open dnsleaktest.com inside your excluded browser. If “Follow App Rules” is active, the excluded browser will report your local ISP or router DNS servers while your tunneled Firefox profile reports only PIA’s internal resolver.
On Linux, remember that systemd-resolved caches per-link DNS routing domains. If a bypassed terminal session still resolves local hostnames slowly after disconnecting, flushing the resolver cache with resolvectl flush-caches clears any stale negative entries immediately.
6. Scripting PIA Automation With piactl on Linux & macOS
For headless servers, Cron jobs, and developers who automate their environment, PIA ships a clean command-line interface called piactl alongside the desktop daemon. Unlike third-party wrapper scripts, piactl talks directly to the running pia-daemon service.
You can inspect your current connection state, switch regions, toggle MACE, and monitor assigned VPN IPs in real time. For example, running piactl background enable allows the daemon to stay connected even when no GUI window is open, while piactl set region us-new-york and piactl connect bring up the tunnel programmatically.
In Linux homelab environments, we frequently pair piactl with systemd unit files or lightweight shell health-check scripts. Running piactl monitor connectionstate streams live state transitions (Connecting, Connected, Reconnecting, Disconnected) to stdout, allowing a monitoring daemon to pause automated backup jobs or container syncs whenever the tunnel drops unexpectedly.
You can also query your active tunnel interface IP and dynamic forwarded port directly via piactl get vpnip and piactl get portforward. Because piactl requires no root privileges once the user is in the piavpn group (or desktop session), standard CI runners and non-privileged user cron jobs can rotate exit regions cleanly without hardcoding sudo passwords.
For administrators managing multiple machines, PIA stores its GUI split-tunneling rules and automation presets in a local JSON configuration file inside the daemon’s state directory. Backing up or replicating that configuration across Linux workstations lets you deploy identical CIDR exclusions and trusted network policies in seconds.
To combine CLI automation with restrictive firewall traversal, you can pair piactl with PIA’s Shadowsocks and SOCKS5 options covered in our PIA Multi-Hop and Shadowsocks guide. You can also check raw WireGuard vs OpenVPN tunnel speeds across regions in our PIA global speed test benchmark.
Built for Sysadmins: Open-Source Apps & piactl CLI
Deploy PIA across unlimited desktops, homelab VMs, and mobile devices with full split tunneling and a 30-day money-back guarantee.
Start PIA Risk-Free (30-Day Guarantee) →100% Open-Source Clients • Unlimited Devices • 30-Day Refund
7. PIA Split Tunneling vs Surfshark Bypasser & CyberGhost
When comparing split tunneling across top VPNs, PIA offers one of the broadest OS matrices on the market. Surfshark’s Bypasser works well on Windows and Android for apps and websites, but Surfshark still lacks native per-app split tunneling on macOS and Linux desktop clients. You can compare both platforms in our Surfshark vs PIA comparison.
CyberGhost takes an even simpler approach, offering basic app exceptions on Windows and Android alongside URL exceptions in its browser-focused tools, without CIDR subnet routing or macOS per-app split tunneling. For engineers running multi-OS workstations, PIA is decisively more capable. See our CyberGhost vs PIA comparison for the full feature breakdown.
All of PIA’s automation and split tunneling features are included in its base ~$2.03/month multi-year plan with unlimited simultaneous devices. Review the full tier details in our PIA pricing plans and discounts guide.
Get 82% Off PIA With Unlimited Simultaneous Devices
Protect every workstation, homelab node, and smartphone on a single account with a 30-day risk-free guarantee.
Get 82% PIA Deal Today →Court-Proven No-Logs • Split Tunneling • 24/7 Live Chat
8. Related PIA Privacy & Routing Guides
Related PIA Privacy & Network Guides
- PIA MACE DNS Blocker Review: Benchmarking PIA’s DNS sinkhole against Pi-hole and NextDNS for ad and malware filtering.
- PIA Multi-Hop & Shadowsocks Guide: Bypassing deep packet inspection with Shadowsocks obfuscation and standalone SOCKS5 proxies.
- PIA 50 US States Network Guide: Using PIA’s state-by-state server footprint to bypass regional sports blackouts and geo-fences.
- PIA Protocols & Ciphers Compared: Deep dive into WireGuard vs tunable OpenVPN AES-128/256-GCM encryption.
9. Frequently Asked Questions (FAQ)
Does PIA support split tunneling on Windows, macOS, and Linux?
Yes, PIA provides native per-app and per-IP/CIDR split tunneling across Windows, macOS, and Linux desktop clients, as well as per-app split tunneling on Android and Fire OS. Only iOS lacks per-app split tunneling due to Apple’s OS sandbox limits.
What is the difference between Bypass VPN and Only VPN in PIA?
Bypass VPN sends all system traffic through the encrypted tunnel except the specific apps or IP subnets you exclude, whereas Only VPN routes only your selected apps through PIA and leaves everything else on your direct ISP connection. Most privacy users prefer Bypass VPN.
Can I exclude local LAN devices or CIDR subnets in PIA?
Yes, you can add any IPv4 address or CIDR block (such as 192.168.50.0/24 or 100.64.0.0/10) to PIA’s Split Tunneling list. You can also enable “Allow LAN Traffic” in the Network tab for standard private network access.
How do PIA’s Trusted Wi-Fi automation rules work?
PIA’s Automation tab lets you configure automatic Connect or Disconnect actions based on network type (Open Wi-Fi, Encrypted Wi-Fi, Wired) or specific wireless SSID names. This ensures your VPN turns on automatically at coffee shops and hotels.
Is it safe to auto-disconnect PIA on my home Wi-Fi SSID?
Auto-disconnecting by SSID name is convenient at home, though an attacker could theoretically spoof your home SSID name in public to trigger a disconnect. When traveling, set Open and Encrypted Wi-Fi rules to always connect.
Why is a bypassed app still showing my VPN DNS or failing to load?
Multi-process browsers and Electron apps sometimes spawn child processes that are not matched if you only add a launcher shortcut. Point PIA to the core executable binary and enable “Follow App Rules” for DNS resolution.
Does PIA split tunneling work with WireGuard?
Yes, PIA’s split tunneling works seamlessly with both WireGuard and OpenVPN across Windows, macOS, Linux, and Android. You do not need to downgrade to OpenVPN to use app or subnet exclusions.
Can I use split tunneling with PIA’s Advanced Kill Switch enabled?
Yes, apps and subnets explicitly set to Bypass VPN continue to bypass the tunnel even when PIA’s Kill Switch is active, while all non-excluded traffic remains protected against drops.
How does Linux PIA split tunneling work under the hood?
On Linux, PIA uses cgroups (net_cls) and iptables/nftables packet marking to route excluded application traffic through your default ISP routing table.
Can I automate PIA connections from the terminal using piactl?
Yes, PIA includes the official piactl command-line tool on Linux, macOS, and Windows for scripting region switches, connections, and MACE toggles.