WireGuard routes certain traffic from the client (your iPhone) through the server (the computer at your house). If you route all traffic, then when your iPhone accesses the internet, it’s as if you were at home. Since that WireGuard server is sitting on the 192.168.0.0/24
subnet, it is able to route your phones traffic to anything else on that subnet.
Wireguard clients have a setting called AllowedIPs that tells the client what IP subnets to route through the server. By default this is 0.0.0.0/0, ::/0
, which means “all ipv4 and all ipv6 traffic”. Now, if all you want is to access your home network services, but some want all your traffic to go through your house, then you change that to 192.168.0.0/24
or whatever your home subnet is, and only that network will be routes to the server at your house.
eszidiszi@lemmy.world 1 day ago
Depends on the client configuration. If you route all the traffic through vpn (so, simplyfied, 0.0.0.0/0) then all their client device network traffic would go through their vpn server at home and is seen as coming from there; otherwise, if you only route specific addressess (like your home network private addressess only) then only those go to their home network and everything else works like it would without a vpn.