Forum Discussion
ian_bucknor_152
Nimbostratus
May 07, 2014I need an irule for a "VIP that forwards ANY to a pool that is going to a default gateway".
I need an irule for a "VIP that forwards ANY to a pool that is going to a default gateway". The iRule will intercept traffic going to the default gateway if it matches the specified match. The exampl...
What_Lies_Bene1
Cirrostratus
May 07, 2014Ah, OK. So the rule looks like this - note I've changed the second if to an elseif;
when CLIENT_ACCEPTED {
log local0. "[IP::remote_addr]:[TCP::remote_port] > [IP::local_addr]:[TCP::local_port]"
if { [IP::addr [IP::client_addr] equals 192.168.192.39] } {
snat 192.168.186.46
log local0. "192.168.192.39 HIT, snatting to 192.168.186.46"
pool gate186tunnel }
elseif { [IP::addr [IP::client_addr] equals 192.168.192.45] } {
snat 192.168.186.47
pool gate186tunnel }
}
So, it looks fine to me. As it's a FastL4 virtual CLIENT_ACCEPTED should fire when the first packet arrives. Are you sure the pool has that name, in that exact case? Do you see the log messages?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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