Forum Discussion
tosneyp_93777
Jun 24, 2011Nimbostratus
Forwarding IP Irule
Hi,
I am currently testing a setup with our new Exchange 2010 infrastructure where by all SMTP traffic is sent to a VIP, which in turn then sends out the SMTP traffic to our smarthost...I've...
tosneyp_93777
Jun 29, 2011Nimbostratus
Hi,
I was wondering if anyone tell me if the below rule will simply forward any traffic it receives toward cluster.messagelabs.com? I think it will use the dns server (172.1.1.1) to resolve the address cluster.messagelabs.com, but once it has resolved it, will it actually forward traffic toward cluster.messagelabs.com?
*********************************************************************************************************************************************
Select the first returned IP address as the destination IP (inherits the destination port from the client's destination port).
when CLIENT_ACCEPTED {
log local0. "cluster.messagelabs.com is currently at IP [RESOLV::lookup @172.1.1.1 "cluster.messagelabs.com"]"
Get IP(s) for hostname cluster.messagelabs.com against 172.1.1.1 name server
set ips [RESOLV::lookup @172.1.1.1 -a "cluster3out.eu.messagelabs.com"]
Log result. If there are multiple IP's it could be a TCL list like {1.1.1.1 2.2.2.2 3.3.3.3}.
log local0. "Looked up cluster3out.eu.messagelabs.com and found $ips, parsed first element: [lindex $ips 0]"
Check if the first list element was empty
if {$ips eq ""}{
Select the IP
node [lindex $ips 0]
}
}
*********************************************************************************************************************************************
Sorry if this is a numpty question, but I'm new to this! :(
May thanks,
Pete
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