Wireguard connection
by assasukasse from LinuxQuestions.org on (#5QNTD)
Hello,
I have three router with OpenWRT and Wireguard that are connecting to each other to join the three networks at home, work and holiday house.
Everything works fine, I have added each other router to the wireguard configuration as peers.
I now would like to connect to a particular network using my android phone and the wireguard vpn from fdroid, I performed the following steps:
1) generate a qr code on the Luci control panel of a router and scan it with the app
2) add the Endpoint of the router to the app (its a fixed ip) and the listening port
3) add the android phone as a peer on the list of peers of the same router, assign it a class 32 ip of the same network I use for wireguard (a free one) but leave the endpoint empty because the phone ip is changing all the time.
4) restart the wireguard interface on the router
Immediately after restarting I check the luci wireguard summary and it seems that the router is not trying to start that network. Trying to connect to that network from the app of the phone fails, nothing is routed (I have 0.0.0.0/0 as allowed ip on the phone so it should route all packets).
Trying to add 0.0.0.0/0 or 0.0.0.0/1 on the allowed ip of the peer (android) on the router results in the interface not coming up.
I am not sure what am I doing wrong, I am able to connect to the sub-net from a pc but not from the phone, any suggestion please?
Many thanks
I have three router with OpenWRT and Wireguard that are connecting to each other to join the three networks at home, work and holiday house.
Everything works fine, I have added each other router to the wireguard configuration as peers.
I now would like to connect to a particular network using my android phone and the wireguard vpn from fdroid, I performed the following steps:
1) generate a qr code on the Luci control panel of a router and scan it with the app
2) add the Endpoint of the router to the app (its a fixed ip) and the listening port
3) add the android phone as a peer on the list of peers of the same router, assign it a class 32 ip of the same network I use for wireguard (a free one) but leave the endpoint empty because the phone ip is changing all the time.
4) restart the wireguard interface on the router
Immediately after restarting I check the luci wireguard summary and it seems that the router is not trying to start that network. Trying to connect to that network from the app of the phone fails, nothing is routed (I have 0.0.0.0/0 as allowed ip on the phone so it should route all packets).
Trying to add 0.0.0.0/0 or 0.0.0.0/1 on the allowed ip of the peer (android) on the router results in the interface not coming up.
I am not sure what am I doing wrong, I am able to connect to the sub-net from a pc but not from the phone, any suggestion please?
Many thanks