0
I have a server (mail - postfix+dovecot, web - apache) on a kvm guest where the host is on a local network behind a normal router (zte or whatever the ISP provided). KVM guest has an IP on the same subnet as the host. (wicked+network bridge on host)
All works well if I try to access things while the client resides outside the LAN (like mobile on 4g link, or a completely different network).
Problem is that when I try to connect while the client is logged on the same network as the server, it just times out.
So far I have disabled all firewalls and tried it... no luck. All port forwarding on the router works well as everything is accessible from outside.
Any ideas? What can I try to see what actually goes wrong or where it gets stuck.
Dovecot calls don't even get logged on the server, nor any packets seem to reach the server while the client is on the local network.
Apache works though, I can see the website while being on the local network, even though from the same computer I can't telnet the server on port 80 or 443.
https://wiki.mikrotik.com/wiki/Hairpin_NAT is one technical explanation of what probably goes wrong in your case. – user1686 – 2018-12-11T16:45:36.440