Forum Discussion
Ido_Katz_38061
Nimbostratus
May 05, 2010Help
Hi Guys,
1st of all I want to tell you that you got great community, you doing a great job!
2nd of all...I have a little problem that I'm sure that one of you can help me, I can't save ...
Cspillane_18296
Nimbostratus
May 05, 2010Hello Ido, try this I think it'll work (at least the iRule editor gives me no complaints!!):
when HTTP_REQUEST {
if { [matchclass [HTTP::header "subscriberID"] equals $::subscriberID]} {
{pool AA-BB-Pool}
else { HTTP::respond 301 Location "http://XYZ.com" target="_blank" rel="nofollow">http://XYZ.com" )
elseif {[matchclass [IP::client_addr] equals $::GGG]}
log local0. "Valid Source IP: [IP::client_addr] - forwarding traffic"
pool AA-BB-Pool}
else { HTTP::respond 301 Location "http://XYZ.com" target="_blank" rel="nofollow">http://XYZ.com" } log local0. "INVALID Source IP: [IP::client_addr] - dropping traffic"
}
}
However, I don't think you needed the first 'if' statement so I have removed it if {[ HTTP::header exists "subscriberID" ]} although one of the more experienced chaps may be able to guide you better on that. Let us know how you get on.
Recent Discussions
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
