Forum Discussion
yammy1688_99834
Mar 29, 2011Nimbostratus
use gateway based on source address
Hey Gang, I've been working with f5 support trying to get this working while now but can't seem to get it going for some reason. Essentially, I need traffic sourced from a node to be sent o...
yammy1688_99834
Mar 29, 2011Nimbostratus
Posted By Michael Yates on 03/29/2011 01:16 PM
Sure. Try this:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals mynetworks] } {
pool matching.pool.name or node 10.10.10.10
}
else {
pool nonmatching.pool.name or node 20.20.20.20
}
}
Hi Michael,
Looks like the source host is set to use a class variable, but the gateway(node) is still statically set? Is there a way to keep a sourceip/gateway pair matched?
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