Wireguard with 2 peers
-
This is what I have:
- Peer 1 (Android)
- Peer 2 (Iphone)
- Home Server (Wireguard)
I want above 2 peers to be able to connect to wireguard through their respective mobile apps and be able to browse LAN and access internet using WireGuard.
I assume I need to specify 0.0.0.0/0' for allowed IP for peers but.. I can only specify '0.0.0.0/0' for allowed IP for a single peer, if I specify the same for second peer, the first peer's 0.0.0.0/0 range will be removed. I've also noticed that when I specify this range for either peer, and restart wireguard interface my whole router needs restarting otherwise there is no network
Can anyone suggest where can I start to accomplish my goal? I followed different tutorials but every single one says different things. Currently I have my WireGuard interface on LAN firewall with port forwarding to wireguard port
I don't use any 3rd party services, wireguard is self hosted
-
Android:
interface -> addresses is the client IP address for example 10.20.30.10/32
peer -> "allowed IP" is for the destinations to route over the WireGuard tunnelpfSense:
Allowed IPs is the client IP address 10.20.30.10/32