Forum Discussion
Brian_69413
Apr 05, 2012Nimbostratus
Clone Pool by client IP not working
I am trying to clone syslog data coming into a VIP to a secondary pool. I have the below iRule. I see the traffic hit the main pool and I know the rule fires based on the logs, but not a thing hits the secondary pool. Am I missing something?
when CLIENT_DATA {
if { [IP::client_addr] equals "1.1.1.1" }{
log local0. "Sent data to clone pool!"
clone pool clonepool.domain.com
}
}
Thanks,
Brian
- hooleylistCirrostratusIs this for TCP or UDP traffic?
- Brian_69413NimbostratusThis will be for both TCP and UDP traffic (two different VIPS)
- hooleylistCirrostratusThe clone pool concept requires the clone destination to accept traffic destined either for the client's destination IP (normally the VIP for a host virtual server) or the virtual server's pool member IP addresses. If your clone destination can't answer for these IPs, a clone pool won't work for your scenario. See SOL8573 for details:
- Brian_69413NimbostratusIt is not that it cannot accept the traffic, but that the source IP of the syslog message gets changed to the BIP-IP's, so the syslog server thinks it is getting syslog messages from the BIG-IP rather than the original source. The kind of problem you would not see with HTTP traffic...
- nitassEmployeei do not think you can change HSL source address.
- Brian_69413NimbostratusSo here is my compromise:
when CLIENT_ACCEPTED { set hsl [HSL::open -proto UDP -pool syslog_pool] } when CLIENT_DATA { if { [IP::client_addr] equals "10.10.10.10" }{ set dname [RESOLV::lookup @10.10.10.100 -ptr [IP::client_addr]] scan $dname {%[^.]} shortname HSL::send $hsl "<190> $shortname - [UDP::payload]" } }
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