Forum Discussion
muzammil_88686
Nimbostratus
Nov 28, 2012iRule - Source Address and "X-Forwarded For"
Currently we are using the below iRule which is chekcing the "X-Forwarded-For" in HTTP header and 10.0.0.0/16 source address
===
when HTTP_REQUEST {
if {([HTTP::header exists "X-F...
muzammil_88686
Nimbostratus
Nov 28, 2012Thanks Brian for your response!
Let me clarify your doubts...
Current Scenario:
-----------------------
Currently user who want to access the URL: "http://www.test.com/wf/hp.me" will be redirected to "http://www.test.com/WF/H.me" if the below two conditions are met
1) If the HTTP header consists of "X-Forwarded-For"
2) Source address is 10.0.0.0/16
New Scenario/Requirement:
--------------------------------------
Need to add the below requirement for the above "current scenario"
If the below two conditions are met then it need to be redirect from "http://www.test.com/wf" "http://www.test.com/WF?sr=new".
1) If the HTTP header consists of "X-Forwarded-For"
2) Source address is 10.3.0.0/16
Pls let me know if your doubts have been addressed.
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