Forum Discussion
Marcus_Hong_Yu
Nimbostratus
Jun 02, 2017LTM irule same irule got called by multiple tmm instances
HI guys, recently I'm working on an irule to make LTM VS acting as reverse proxy. basically the user will call the VS on https, and the VS will use the irule to do DNS query against a specific URL an...
Marcus_Hong_Yu
Nimbostratus
Jun 02, 2017Here is the irule I composed
when CLIENT_ACCEPTED { set index 0 set dnslist [list 10.1.1.1 10.1.1.12 10.2.2.4] set max 3 while {$index <= $max} { set dns [lindex $dnslist $index]
perform DNS resolution
set dest [lindex [RESOLV::lookup @$dns -a ";] 0] Check if the first list element was empty if {$dest eq ""}{ No valid IP resolved against DNS set index [expr {$index + 1}] } else { Set Node IP based on DNS resolution node $dest 443 set index [expr {$max + 1}] } } }
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