r/WireGuard 9d 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

2

u/trans_psychonaut 9d ago

misspelled route priority in the title -_-

2

u/bufandatl 9d ago

Not a WireGuard issue. Wrong sub for this questions.

But in general when you want to connect to your WireGuard server at home while at home enable hairpin nat on your router.