Hello everyone. already I have two network on my device:
one for normal wan traffic.
and one other for wireguard tunnel through the wan, and this one have a seperate wifi network.
My case is I want to be able to intercommunicate between my LANs. for example I already In 192.168.230.0/24 network, and I want to see hosts in 192.168.220.0/27 network. here is my /etc/config/network file:
It didn't work! I add this parts into my firewall:
config zone
option name 'LAN2_LAN'
option input 'ACCEPT'
option forward 'ACCEPT'
option network 'LAN2_LAN WGLOCAL'
option output 'ACCEPT'
config forwarding
option dest 'lan'
option src 'LAN2_LAN'
config forwarding
option dest 'LAN2_LAN'
option src 'lan'
Should I add an static route or something like that? because it is two separate network that want to communicate each other.(As you said before in another of my topics here)
Thank's a lot. that's fine now.
One last thing... how to reach both gateways in any of networks? for example I'm in the wifi1 or LAN1 network (192.168.220.0/27) and I want to sending my Internet traffic using the wifi2(LAN2) Network (192.168.230.0/24), Because my LAN2 pass through the wireguard tunnel, and I want to access it's gateway either inside of LAN2 and also LAN1.