Forum Discussion
N__197982
Sep 19, 2017Nimbostratus
Hi JTI, We need the translate port disabled....since the incoming requests should get redirected to the same port on the node. The iRule works in such a way that the node selection is automatic:
when HTTP_REQUEST { if { [HTTP::host] contains "noname.com" } { set ips [lindex [RESOLV::lookup -a "[getfield [HTTP::host] "." 1].internal.com"] 0] log local0.debug "Debug: Resolved(HTTP) address for \"[getfield [HTTP::host] "." 1].internal.com\" = \"$ips\"" if { $ips ne "" } then { node $ips [TCP::local_port] } } }