LXD ipv4.nat.address is not working

Yes this config looks fine. All inbound connections to the host’s public IP on port 25 will be forwarded to the container’s internal IP but with the source address still set to the original external source address.

Its likely the MASQUERADE rule you have from the other thread is causing the forwarded packets to be translated to appear to be from the host’s mail interface.

See LXD using IPVLAN for public ip alias

1 Like