On 09/05/2010 11:02 AM, Carlos Velasco wrote:
Hello,

Is there any way to choose source IP address for LDAP query in postfix?

We have a multi-instance setup where one instance need to use a specific
source ip address in the system because LDAP queries must go trough a
VPN IPsec connection. I can setup source ip address for smtp connections
but I can't find anything similar for LDAP queries.

Regards,
Carlos Velasco

You can use source routing on the host machine to make sure any queries to that LDAP server originate from a specified IP:

ip route add <LDAP-server> [via <VPN>] src <source-IP>

This will always assign that interface's IP as the source.


J.

Reply via email to