I have two routers: Main: Asus AC86U WAN DHCP LAN 192.168.0.0/24 running factory AsusWRT.
In the LAN side, I have a NeWiFi router running OpenWrt with Wireguard.
When the NeWiFi was running as a router, LAN IP was 192.168.1.0/24 and Wireguard was working perfecty.
I changed the NeWiFi to a switch and basically work as a Switch and WiFi Access Point. Now, I can connect the Wireguard from outside but the only IP I can access is the NeWiFi router's static IP in the 192.168.0.0/24 range. I am missing some routing somewhere but any help would be appreciated.
Thanks. That was half the battle. Now I can connect to anything within the LAN segment. Now I have to figure out how to surf the net. I think I have to add a route on the NeWiFi now.
It is already configured there, the gateway in lan interface.
The other reason for failing is that the ISP router will not masquerade (NAT) networks which are not directly connected. If that is the case and you cannot change it, you'll have to enable masquerade on the lan firewall zone.
While we are here, from the WG peer config change the allowed_ips to the IP that the peer is using, like 10.200.200.2/32 and remove the route_allowed_ips. The persistent_keepalive is important to be present on the peer configuration, here won't do much.