Hi. I have 2 LANs with openwrt routers, they connected via wireguard server with static ip in AWS.
- Bounce server in AWS. wireguard interface ip 10.10.10.10, allowedips for LAN#1 192.168.1.0/24 and .2 for LAN2
- LAN #1 - 192.168.1.1/24, has wireguard ip 10.10.10.1, peer allowedips = 10.10.10.0/24, 192.168.2.0/24
- LAN #2 - 192.168.2.1/24, has wireguard ip 10.10.10.2, peer allowedips = 10.10.10.0/24, 192.168.1.0/24
Zones in each router: LAN and WG. forward allowed between them.
So, two networks connected. i can ping hosts in net 1 from hosts in net 2.
What i need to do is to route all the traffic in LAN1 to go to LAN2 WAN gateway (192.168.2.1), so in LAN1 i can browse internet like i'm in LAN2.
Not sure how can i do it. Thanks