The remote access is just for the client E. I do not know what would be the drawbacks of having LAN1 == LAN2 (performance, security). But since I do not need remote access to the devices from LAN1, we can keep them isolated.
The motivation to separate in two LANs is because I do not want all my internet traffic to go through the tunnel. But maybe I am overthinking things?
I think that I am getting close... Setting aside having a separate net on the wan, I think that all that is left is the configuration on the ISP router. I read somewhere that there is no port forwarding for IPv6, is that correct? If so, what is the configuration that I need to do in the ISP router in order to allow/route the incoming IPv6 traffic?
/etc/config/firewall
config zone 'lan'
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
option masq '1'
config zone 'wireguard'
option name 'wireguard'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'wg0'
config forwarding
option dest 'wireguard'
option src 'lan'
config forwarding
option dest 'lan'
option src 'wireguard'
/etc/config/network
config globals 'globals'
option ula_prefix '<hidden>'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.0.2'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '192.168.0.1'
list dns '8.8.8.8'
config interface 'wg0'
option proto 'wireguard'
option private_key '<hidden>'
option listen_port '51820'
list addresses '192.168.9.1/24'
list addresses 'fd00:9::1/64'
config wireguard_wg0 'wgclient'
option public_key '<hidden>'
option preshared_key '<hidden>'
list allowed_ips '192.168.9.2/32'
list allowed_ips 'fd00:9::2/128'
option route_allowed_ips '1'
option persistent_keepalive '25'
option description 'test'
Exactly what I was thinking :-). Masquerading will be needed on the AP's lan zone, but the firewall will only allow forwarding to that singular IP from the WG tunnel. Should be pretty easy.
Unfortunately IPv6 is a no-go for me . The ISP router doesn't allow to configure firewall rules, and as far as I understand, this is necessary for the setup that I am trying to do.
I called my ISP and asked them to remove me from the CG-NAT, and they did it. With IPv4 will be a lot easier to configure.