Hello. I have 2 pieces of ar300m lite. I made a Wireguard-server on router B and a Wireguard-client on router A. Router A - Internet via 4g lte, providers NAT .LAN 172.16.9.1, wg 10.0.0.2. Router B has static external address, wg 10.0.0.1 and lan 172.16.8.1. I use v3.005 firmware. I need to access or redirect the port to the network behind router A. But I do not understand, how can i do it. I will be grateful for any ideas from you
There are two steps you have to do on router B.
- Add 172.16.8.0/24 to WireGuard Allowed-ips filed.
- Add static route, such as ip route add 172.16.8.0/24 dev wg0 proto static scope link.
Perhaps I did not exactly explain. I need to open access from the network 172.16.8.0/24 (B) to the network 172.16.9.0/24 (A)
I am sorry for my mistake. You have to ssh to router B, edit the /etc/config/wireguard_server. Please add this line to peers section.
option subnet "172.16.9.0/24"
Finally, restart WireGuard server on WebUI.