On-Demand Rules / Trusted Network Auto-Disconnect for iOS/macOS Client #2760
davidgatti
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add the ability to configure trusted WiFi networks (SSIDs) where the Pangolin VPN automatically disconnects, and automatically reconnects when leaving those networks or switching to cellular.
Motivation
When using Pangolin to access home services remotely (e.g. Jellyfin, Pi-hole), the VPN works great on the go. But when I return home and connect to my home WiFi, the VPN tunnel stays active. Traffic then loops through the relay server (phone → AWS → back home) instead of going directly on LAN, causing all network requests to fail or time out. I have to manually disconnect every time I get home, and manually reconnect when I leave. This makes the experience frustrating for daily use.
Proposed Solution
Add an "On-Demand Rules" or "Trusted Networks" section in the iOS/macOS client settings:
iOS already supports this natively via NEOnDemandRule (NEOnDemandRuleDisconnect, NEOnDemandRuleConnect, NEOnDemandRuleEvaluateConnection) in the Network Extension framework. The official WireGuard iOS app implements this exact feature, so the underlying API support is already there since Pangolin uses WireGuard under the hood.
Alternatives Considered
Additional Context
Beta Was this translation helpful? Give feedback.
All reactions