Forum Discussion
Preserve original source IP with SNAT for SMTP
haproxy's PROXY protocol https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt provides the solution to this problem.
This presents the clients real IP address as a line of data when establishing a connection to the SMTP server. The SMTP server has to support v1 of protocol and an iRule is written emulate the protocol on the backend connection.
This is the code for initiating a back-end connection to the SMTP server using this protocol
https://devcentral.f5.com/codeshare/proxy-protocol-initiator
This is not required but listed for reference. If you ever need to receive PROXY protocol connections then this handles that as well.
https://devcentral.f5.com/codeshare/proxy-protocol-receiver
- NatDoyleSep 21, 2020Altostratus
Gonna give this a go now thanks Kev
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com