Forum Discussion
sukraf_88722
Nimbostratus
Jan 30, 2008Help with Irule to forward traffic
What I am needing to do is forwaard http traffic to the internet that matches a IRule instead of our internal pool members. Understand how to match a URI but not how to forward it backout.
Example: any http uri containing yahoo forward.
I have tried default_gw pool, wich I cant get to work and have tried to forward to a Ip_forward VIP 0.0.0.0 but in 9.3.0 cant use virtual (poolname}.
Any thoughts are appreciated.
4 Replies
Sort By
- The_Bhattman
Nimbostratus
In order to answer your question there are several assumptions that need to be made.when HTTP_REQUEST { if { [HTTP::uri] equals something]} { forward } else { pool pool_name } }
- Shay_Ben-David1
Nimbostratus
the irule written by: cmbhatt is ok, but you did not mention what happens if it does not match the uri, because if the else reffers to pool that has one of your default gateways you will be routed anyway. - The_Bhattman
Nimbostratus
There are different ways to handle when the URI doesn't match, that the original poster didn't mention. The original poster seemed to only be be interested in how to match the URI and forward it. - Colin_Walker_12Historic F5 AccountIf you're concerned about effecting all traffic, you could always just have the "else" clause of the if statement in that example rule do nothing. That way only traffic that matches the desired pattern is effected at all.
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