astubenbord / paperless-mobile

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

[Feature]: Automatically Trigger Wireguard Tunnel #388

Open jrpetersjr opened 9 months ago

jrpetersjr commented 9 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 9 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 8 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".