Hey there,
currently I’m using an external gateway to get into the internet in and out.
Mailcow is connected via VPN to this gateway.
Gateway got IP 10.10.10.1.
Internal mailcow network is 172.22.1.0/24.
My problem is now that every access log is showing 10.10.10.1 as source ip and not the “real” ip.
Gateway is sending every request via iptables NAT.
So in nginx-mailcow the 10.0.0.0/8 network is already in set_real_ip_from. I also tried setting “TRUSTED_PROXIES=” to the public ip of the gateway but this also didn’t changed anything.
Any hints for me or solutions? Thanks in advance!