Forum Discussion
done_23947
Apr 07, 2011Nimbostratus
restrict public access
I need help w/ a iRule.
I have two URL's,
https://ssb.xx/ODSP/twbkwbis.P_ValLogin and
https://ssb.xx/PROD/twbkwbis.P_WWWLogin.
Both use same public IP address
VIP.
I would like to...
Michael_Yates
Apr 07, 2011Nimbostratus
Hi Done,
Your [HTTP::host] value appears to be the same for both URL's so I am making an assumption and using the [HTTP::uri].
I don't know how many internal subnets you have so I also made the assuption that you might want to use a Data Group so that you can add additional subnets in the future.
This written for v10:
Create a Data Group (Local Traffic -> iRules -> Data Group List) and add the Networks you want to allow to the /PROD into it.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/prod" } {
if { ![class match [IP::client_addr] equals InternalNetworkList ] } {
Take Action Here.
HTTP::redirect " https://ssb.xx/ODSP/twbkwbis.P_ValLogin"
}
}
}
Hope this helps or gets you started.
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