Hi together,
i have read this forum for weeks and i dont find the right solution for my problem so i decided to post my configuration hoping that someone has a solution in mind.
I have 2 locations both with mikrotik equipment for the network.
one locations has a static ip address with a HEX 192.168.0.1 and holds my NAS and all the other server stuff including a pihole for DNS all in one single subnet 192.168.0.0/24.
The other location has a dynamic ip address with a cable modem in bridge mode and a HAP AC2 192.168.80.1 behind it also with one single subnet 192.168.80.0/24.
I have a working l2tp connection with ipsec between both subnets and i was also able to define routes between both subnets.
I was also able to setup a pihole on the HEX subnet 192.168.0.0 as a DNS Server 192.168.0.2.
That pihole is working fine and showing me every single client on that subnet 192.168.0.0.
My problem is, that every single client from the "remote" subnet 192.168.80.0 that comes over vpn is shown as the HEX IP 192.168.0.1
In my opinion its something about a NAT Problem or after i read a lot in this forum something that is called Hairpin NAT.
My target is that the pihole dns server sees the incoming request from the remote subnet clients from 192.168.80.0 as single clients.
But without Help i dont know what exactly i have to do to get it Working...
Hope that this painting of my Networks helps. I inserted the routes, firewall and nat rules.