r/VPNAdvice_ • • 13h ago

made an open source self-hosted vpn for android with per-app routing and a standby mode, looking for feedback

Post image

i got tired of free vpns that are slow, drain the battery and make money off your traffic, so i built one i host myself. it's called detour. a go server and an android app, MIT licensed

it runs over TLS on tcp 443, so basic filtering sees something that looks like https

the parts i actually use:

  • per-app split tunneling, pick which apps go through it and change them while connected
  • standby: if none of those apps are on screen for x minutes it drops the server connection, but keeps holding their traffic so they don't leak. open one and it reconnects
  • no polling and no wake lock sitting there while idle, just one small ping every ~4 min
  • home screen widget
  • one-time invite links, and speed/data limits per user enforced on the server

known downsides before you roast me: it's tcp over tcp so it'll suffer on bad mobile signal, ipv4 only, android only, self-signed pinned cert so a determined censor could probably still spot it, and the "turn off when idle" option (not standby) lets apps go back to your normal connection. it hasn't been audited. it's not for anonymity either, you're the one running the server

https://github.com/fattymango/detour

first release. would really like feedback on the protocol and the battery side, and if you try it on a network that blocks stuff tell me if it got through

1 Upvotes

0 comments sorted by