astubenbord / paperless-mobile

An (almost) fully fledged mobile paperless client.
GNU General Public License v3.0
598 stars 32 forks source link

[Feature]: Automatically Trigger Wireguard Tunnel #388

Open jrpetersjr opened 3 months ago

jrpetersjr commented 3 months ago

Description

The Wireguard App allows for starting VPN tunnels from other apps. A lot of people use Paperless with wireguard and I know it would be nice to start have the option to start a tunnel when the app opens and optionally close the tunnel when the app closes. The developer wrote a message about how to do this on reddit some years ago and it's still available here: Wireguard Intent

image
astubenbord commented 3 months ago

Wow, very cool, I also use WireGuard to access my self hosted services and didn't know that was a thing. I'll see if I can implement this in one of the next versions!

eliasp commented 2 months ago

I wonder why "close" and "open" the "tunnel" in the first place? Wireguard is stateless and doesn't really have a "tunnel", compared to IPsec.

Unless one configures a persistent keepalive, it won't consume any battery or have any network performance impact while not being used and being configured as "always on VPN".