Hello everyone!
My desired setup is pretty straightforward. I have one router/access point with OpenWRT installed in my home. I want to be able to access this router and LAN network behind it.
I followed install and setup guide here -> https://openwrt.org/docs/guide-user/services/vpn/wireguard/start and managed to configure 2 peers to be able to connect to the router via WG (laptop and android mobile). This is cool and all but now I want to access the LAN behind this router (several hosts). I followed another guide -> https://www.ericlight.com/wireguard-part-two-vpn-routing.html to setup access to LAN behind WG peer.
Thing is, I have the same configuration for peers connecting to WG router (except of course different peer IP's) but I'm able to access LAN only from one of them (my android mobile WG peer). I compared route configs on both of them and they are the same.
What can be the issue here?
(Please let me know what configs to paste in. Thanks!)
Please post the following files
/etc/config/network (redact your wg keys and any public IP address, but don’t change anything else)
/etc/config/firewall
Changed as you suggested and restarted firewall. Issue unfortunately still remains. I can only connect to OpenWRT router. Nothing beyond that. I'm attaching my laptop WG config which I'm using to establish tunnel:
change 10.9.0.2/24 to 10.9.0.2/32 and remove 192.168.1.1/24 entirely
Change this to 192.168.1.1
remove the IPv6 IPs (::/0)
Also, how are you testing this? Is it from inside your network or are you testing from a remote location and/or over cellular? You should really test this from outside the network because of the way the routing works.
Also, how are you testing this? Is it from inside your network or are you testing from a remote location and/or over cellular? You should really test this from outside the network because of the way the routing works.
Yeah, I'm using the cellular network to test this right now as I'm at home
Also I think those changes fixed my issue! I can connect to hosts in LAN. Thank you very much!