Internet for LAN via WireGuard Tunnel

Good evening, I have the following scenario:

Router A (40.40.40.1) has a WireGuard tunnel to Router B (40.40.40.2).

  • On Router A, I have configured a route to access the network of Router B: 192.168.0.0/24 to 40.40.40.2.


  • On Router B, I have configured a route to access the network of Router A: 192.168.50.0/24 to 40.40.40.1.

I have communication between both devices, but I need to know how I can provide internet access to the LAN of Router B (192.168.0.0/24) through Router A, as it has a public IP provided by my ISP.

On routerB, the allowed IPs entry for routerA then require only one entry
0.0.0.0/0 as it covers all possible IP addresses.

If you intend to ask a million followup questions simply post both configs when you do.
/export file=anynameyouwish (minus router serial number, any public wanip information, keys etc.)