Forum Discussion
JRahm
May 02, 2006Admin
The iRule should be associated to the 0.0.0.0/0 network forwarding virtual you created. Also, I'd like to note that I lock down this virtual to only the internal VLAN's, so external traffic won't be forwarded to internal networks. I'd be curious if the iRule is being triggered before/after the nat occurs? Might add some logging to find out:
when CLIENT_ACCEPTED {
set my_gw [findclass [IP::client_addr] $::snat_gw " "]
if { $my_gw ne "" } {
log "My gateway is $my_gw and my client IP is [IP::client_addr]"
node $my_gw
} else {
log "My client IP is [IP::client_addr]"
discard
}
}
The logs are in /var/log/ltm