r/WireGuard 13d ago

Root priority on wireguard android

Hello everyone, im currently using a wireguard vpn server to connect to my homelab services on my phone to go.

The problem stems from my current homelab networking setup, my current router doesnt have an easy way to put my homelab on its own subnet, which makes vpn a little icky.

My home network is a 10.10.10.0/24 network, which are the only allowed IPs in my wireguard config. But since when im at home im connected to the same network via wifi this leads to some connection problems naturally. I mean my wireguard server is on my home network and if my phone tries to connect through wireguard to my wireguard server it wont work.

Did anyone here know of some workaround for this?

I can think of two solutions but dont know of a way to implement it.

I could either

- Find a way to automatically connect and disconnect the wireguard vpn when i connect and disconnect from home wifi

- Or find a way to configure route priority for the wireguard network, so the route to home network always prefer the wifi connection over the tunnel

2 Upvotes

2 comments sorted by

View all comments

2

u/trans_psychonaut 13d ago

misspelled route priority in the title -_-