Forum Discussion
zpf_eccom
Nimbostratus
Mar 13, 2016How smtp server record client source ip address
I have a smtp server (linux operations system), i want record(log) client source ip address , but you know , F5 execute auto-map transform client source ip add to internal ip address and server will see an address only , How can i solve the problem ?
3 Replies
- Vitaliy_Savrans
Nacreous
You can disable auto-map. - zpf_eccom
Nimbostratus
if can i use iRules to solve it ? - To get the client IP address, you have two choices : - Disable SNAT alltogether. The BigIP needs to be your email server default gateway. In this configuration, the BigIP simply routes back and forth the SMTP traffic, do what it has to do in the middle, but the SMTP server sees the client IP. - Make your email server support the PROXY protocol, and play around with iRules to make it work on the BigIP: Proxy Protocol : http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt Example iRule for the BigIP side : https://devcentral.f5.com/s/articles/proxy-protocol-initiator Postfix for instance support the Proxy Protocol.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects