Hi to all,
I am aware this is a silly idea, but apparently it is doable, I just don’t know RouterOS well enough particularly wrt routing to get the job done right.
So my scenario: Link between main home LAN A and holiday home LAN B in two different cities
LAN A (192.168.22.0/24) connected to LAN B (192.168.0.0/24) via WireGuard (192.168.2.0/24)
All working well, A can reach B, B can reach A.
Everything working as expected
I love WireGuard.
From LAN, I need to “place” ESXi VM 192.168.22.X (running Unifi Network Controller on Debian/Ubuntu) “on” LAN B with
IP 192.168.0.X so that I can have the VM manage the existing Ubiquiti APs connected to LAN B on IPS 192.168.0.A and 192.168.0.B
I know it’s a “bad” idea to place the Unifi VM in LAN A “onto” LAN B, but it is what I need to do (unless someone knows how to tell Unifi Controller
to go look for LAN B via the WG Client on it??)
What I find at the moment is that when trying to get WG client on VM 22.X (LAN A) connected to 0.1 (LAN B) I can establish the connection,
I may even be able to ping the gateway on the other end of the link (depending on which side I am trying to do it from) but the ability to
talk to 0.X (anything) on LAN B when WireGuard client on VM is connected, just isn’t working.
Sorry for the roundabout way of describing it.
What I have tried is to use routes (I’m ok at this) and policy based routing (I’m totally new at that) to achieve it, but when I get A to work I
break B and vice versa, so it isn’t going to fly.
I did find/read some information about mangling the packets and setting up new routes based on named routing tables, but I’m not experienced
enough to understand what I am doing and why, given the documentation I have found.
Anybody willing to provide me some guidance as to:
- Is this achievable (even though it would be better to do it the “right” way)
and - Provide me with a step by step breakdown of the underlying principles I’m not aware of when it comes to this?
or - Make alternative recommendations even if it includes somehow telling the Unifi Controller to go “look” for LAN B 0.X via client interface tunnel WG connected on 2.X
ps : I know I can re-enroll/adopt the Unifi equipment and connect them to the controller on LAN A easy enough, but I don’t
have technically capable hands on-prem at LAN B that could do this, and LAN B is several thousand KMs away.
Thanks for the energy, please be kind ![]()
